Skip to content

Commit a8f3fb8

Browse files
bingli621nvaytet
andauthored
Update src/tof/utils.py
Co-authored-by: Neil Vaytet <39047984+nvaytet@users.noreply.github.com>
1 parent 2aa3d74 commit a8f3fb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tof/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def energy_to_speed(x: sc.Variable, unit="m/s") -> sc.Variable:
6666
unit:
6767
The unit of the output speeds.
6868
"""
69-
return sc.sqrt(2 * x / const.m_n).to(unit=unit)
69+
return sc.sqrt(x / (0.5 * const.m_n)).to(unit=unit)
7070

7171

7272
def one_mask(

0 commit comments

Comments
 (0)