Skip to content

Commit

Permalink
ENH: apply SPIDR rollover with single partition if no heartbeat is re…
Browse files Browse the repository at this point in the history
…ceived
  • Loading branch information
genematx committed Sep 12, 2024
1 parent 8e6d335 commit 0a885ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpx3awkward/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _ingest_raw_data(data):
prev_ts = ts[:photon_count] # This portion needs to be adjusted
# Find what the current timestamp would be without global heartbeat
_, _, _, _ts_0 = decode_message(msg, chip_indx, heartbeat_time=np.uint64(0))
# Check if there is a SPIDR rollover in the beginning of the file but before the received
# Check if there is a SPIDR rollover in the beginning of the file before the heartbeat
head_max = max(prev_ts[:10])
tail_min = min(prev_ts[-10:])
if (head_max > tail_min) and (head_max - tail_min > 2**32):
Expand Down

0 comments on commit 0a885ad

Please sign in to comment.