We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec3a9a commit 9333cb0Copy full SHA for 9333cb0
httomolibgpu/prep/phase.py
@@ -139,7 +139,7 @@ def paganin_filter(
139
140
141
def _calculate_alpha(energy, distance, ratio_delta_beta):
142
- return (_wavelength_micron(energy) * distance / (4 * math.pi)) * ratio_delta_beta
+ return _wavelength(energy) * distance * ratio_delta_beta / (4 * math.pi)
143
144
145
# the scaling is different here and doesn't follow the original formula
@@ -212,7 +212,7 @@ def _pad_projections_to_second_power(
212
return padded_tomo, tuple(pad_list)
213
214
215
-def _wavelength_micron(energy: float) -> float:
+def _wavelength(energy: float) -> float:
216
# for photons: E = 1keV -> 1.23984193 nm
217
return (1.23984193e-9) / energy
218
0 commit comments