Skip to content

Commit fa28370

Browse files
committed
simplify distance bins
1 parent 975ef9b commit fa28370

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ess/reduce/time_of_flight/toa_to_tof.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,7 @@ def compute_tof_lookup_table(
244244
# ensure that the last bin is not cut off. We want the upper edge to be higher than
245245
# the maximum distance, hence we pad with an additional 1.5 x resolution.
246246
pad = 2.0 * res
247-
distance_bins = sc.array(
248-
dims=["distance"],
249-
values=np.arange((min_dist - pad).value, (max_dist + pad).value, res.value),
250-
unit=distance_unit,
251-
)
247+
distance_bins = sc.arange('distance', min_dist - pad, max_dist + pad, res)
252248

253249
# Create some time bins for event_time_offset.
254250
# We want our final table to strictly cover the range [0, frame_period].

0 commit comments

Comments
 (0)