Skip to content

Commit

Permalink
Debug for incorrect calculation of diff
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Aug 8, 2024
1 parent 9d19442 commit 0ffbddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strax/processing/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def diff(data):
results = np.zeros(len(data) - 1, dtype=np.int64)
max_endtime = strax.endtime(data[0])
for i, (time, endtime) in enumerate(zip(data["time"][1:], strax.endtime(data)[:-1])):
results[i] = time - max_endtime
max_endtime = max(max_endtime, endtime)
results[i] = time - max_endtime
return results


Expand Down

0 comments on commit 0ffbddf

Please sign in to comment.