Skip to content

Commit b87685f

Browse files
authored
docs: use current link (#233)
1 parent b76f9c7 commit b87685f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ess/beer/conversions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _compute_d_given_list_of_peaks(
9090
) -> sc.Variable:
9191
"""Determines the ``d_hkl`` peak each event belongs to,
9292
given a list of known peaks."""
93-
# Source: https://www2.mcstas.org/download/components/3.4/contrib/NPI_tof_dhkl_detector.comp
93+
# Source: https://www.mcstas.org/download/components/current/contrib/NPI_tof_dhkl_detector.comp
9494
sinth = sc.sin(theta)
9595
t = time_of_arrival
9696

@@ -138,7 +138,7 @@ def _tof_from_dhkl(
138138
time0: sc.Variable,
139139
) -> sc.Variable:
140140
"""Computes tof for BEER given the dhkl peak that the event belongs to"""
141-
# Source: https://www2.mcstas.org/download/components/3.4/contrib/NPI_tof_dhkl_detector.comp
141+
# Source: https://www.mcstas.org/download/components/current/contrib/NPI_tof_dhkl_detector.comp
142142
# tref = 2 * d_hkl * sin(theta) / hm * Ltotal
143143
# tc = time_of_arrival - time0 - tref
144144
# dt = floor(tc / mod_period + 0.5) * mod_period + time0

0 commit comments

Comments
 (0)