Skip to content

WeightingPotentialReader: correctly provide field scale factors as fractions of the pixel pitch

Simon Spannagel requested to merge unbreak_wp_scaling into master

In !510 (merged) we have changed the way field scale factors are provided to the DetectorField class. Instead of providing them in units of length, we now provide them as fractions of the pixel pitch. The relevant code in the ElectricFieldReader was adjusted accordingly. However, the corresponding function in the WeightingPotentialReader was left untouched and still presented the scales in framework-internal units of length (mm).

This MR fixes this.

The DopingProfileReader does not seem to be affected because there scale factors where passed as fractions of the pith from the very beginning - basically another bug we reversely fixed by moving to pitch fractions everywhere else 🙄

Merge request reports