Skip to content

Commit d9b5147

Browse files
committed
Comment on dropped negative bins
1 parent bfedd4b commit d9b5147

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/time_of_flight/resample_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ def test_basic_functionality(self):
265265
# Create a data array with a simple time-of-flight coordinate that has two
266266
# strictly increasing sections
267267
tof = sc.array(dims=['tof'], values=[1, 2, 3, 2, 3, 4, 5])
268-
data = sc.array(dims=['tof'], values=[10, 20, 15, 25, 35, 11])
268+
# 666 is in the "unphysical" negative-size bin and should be dropped.
269+
data = sc.array(dims=['tof'], values=[10, 20, 666, 25, 35, 11])
269270
da = sc.DataArray(data=data, coords={'tof': tof})
270271

271272
result = resample.rebin_strictly_increasing(da, 'tof')

0 commit comments

Comments
 (0)