Skip to content

Commit

Permalink
Change endtime - time >= 0 to endtime >= time
Browse files Browse the repository at this point in the history
  • Loading branch information
JYangQi00 committed Sep 11, 2023
1 parent a466a94 commit adbe22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strax/processing/general.py
Expand Up @@ -448,7 +448,7 @@ def _check_time_is_sorted(time):
@numba.jit(nopython=True, nogil=True, cache=True)
def _check_objects_non_negative_length(objects):
"""Checks if objects have non-negative length"""
mask = np.all(strax.endtime(objects) - objects['time'] >= 0)
mask = np.all(strax.endtime(objects) >= objects['time'])
assert mask


Expand Down

0 comments on commit adbe22a

Please sign in to comment.