Skip to content

Commit 8205c44

Browse files
committed
fix unit of absorption length to be mm as well (same as thicknesses)
1 parent 7c2d269 commit 8205c44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hexrdgui/overlays/powder_overlay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def pinhole_distortion_kwargs(self):
654654
kwargs = self.tth_distortion_kwargs.copy()
655655
if self.pinhole_distortion_type == 'RyggPinholeDistortion':
656656
# Add our absorption length
657-
kwargs['absorption_length'] = HexrdConfig().absorption_length()
657+
kwargs['absorption_length'] = HexrdConfig().absorption_length() * 1e-3
658658
return kwargs
659659
# END PolarDistortionObject mixin reroutes
660660

hexrdgui/pinhole_correction_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def correction_kwargs(self):
144144
}
145145
if self.rygg_absorption_length_visible:
146146
# Only return an absorption length if it is visible
147-
output['absorption_length'] = HexrdConfig().absorption_length()
147+
output['absorption_length'] = HexrdConfig().absorption_length() * 1e-3
148148
return output
149149

150150
raise Exception(f'Not implemented for: {dtype}')

0 commit comments

Comments
 (0)