Skip to content

Commit 3662ed4

Browse files
committed
final fix to absorption length display number in calibration dialog.
1 parent 8205c44 commit 3662ed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hexrdgui/pinhole_correction_editor.py

Lines changed: 2 additions & 2 deletions
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() * 1e-3
147+
output['absorption_length'] = HexrdConfig().absorption_length()
148148
return output
149149

150150
raise Exception(f'Not implemented for: {dtype}')
@@ -157,7 +157,7 @@ def correction_kwargs(self, v):
157157
vp = v.copy()
158158
# These units are in mm, but we display in micrometers
159159
for key, value in v.items():
160-
if key in ('num_phi_elements'):
160+
if key in ('num_phi_elements', 'absorption_length'):
161161
multiplier = 1
162162
else:
163163
multiplier = 1e3

0 commit comments

Comments
 (0)