Skip to content

Commit 3553952

Browse files
Update src/ess/reduce/time_of_flight/to_events.py
Co-authored-by: Simon Heybrock <[email protected]>
1 parent 2030f30 commit 3553952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ess/reduce/time_of_flight/to_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def to_events(
5454
nans = np.isnan(left) | np.isnan(right)
5555
left = np.where(nans, 0.0, left)
5656
right = np.where(nans, 0.0, right)
57-
# Ensure low <= high
57+
# Ensure left <= right
5858
left, right = np.minimum(left, right), np.maximum(left, right)
5959

6060
# In each bin, we generate a number of events with a uniform distribution.

0 commit comments

Comments
 (0)