Commit 0ce96f82 authored by Håkan Wennlöf's avatar Håkan Wennlöf
Browse files

Put the field_offset owl {0,0} directly into the function call

parent 42ed97ae
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -74,16 +74,13 @@ void WeightingPotentialReaderModule::initialize() {
            field_scale = {{scales.x(), scales.y()}};
        }

        // Set the field offset to zero; weighting potential needs to be centered around electrode
        std::array<double, 2> field_offset{{0.0, 0.0}};

        // Set the field grid, provide scale factors as fraction of the pixel pitch for correct scaling:
        detector_->setWeightingPotentialGrid(field_data.getData(),
                                             field_data.getDimensions(),
                                             field_data.getSize(),
                                             field_mapping,
                                             field_scale,
                                             field_offset,
                                             {0.0, 0.0},
                                             thickness_domain);
    } else if(field_model == WeightingPotential::PAD) {
        LOG(TRACE) << "Adding weighting potential from pad in plane condenser";