From 0a885ad80993f2e2fbc41e17a3d0d3ac2ba1c3d7 Mon Sep 17 00:00:00 2001 From: Eugene M Date: Mon, 19 Aug 2024 17:27:32 -0400 Subject: [PATCH] ENH: apply SPIDR rollover with single partition if no heartbeat is received --- tpx3awkward/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpx3awkward/_utils.py b/tpx3awkward/_utils.py index 1ad253e..73f6d71 100644 --- a/tpx3awkward/_utils.py +++ b/tpx3awkward/_utils.py @@ -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):