We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccb42cf + 8f55d53 commit 726d147Copy full SHA for 726d147
1 file changed
src/tof/inelastic.py
@@ -152,6 +152,8 @@ def apply(
152
w_final = energy_to_wavelength(final_energy, unit=incident_wavelength.unit)
153
154
out = neutrons.assign_coords(
155
- wavelength=w_final, speed=wavelength_to_speed(w_final)
+ wavelength=w_final,
156
+ speed=wavelength_to_speed(w_final),
157
+ kf_over_ki=sc.sqrt(final_energy / incident_energy),
158
)
159
return out, self.as_readonly(out)
0 commit comments