From 4be0cee224a28ad8e6e261b1ced3adc65d2e24fe Mon Sep 17 00:00:00 2001 From: Eugene M Date: Thu, 12 Sep 2024 17:59:45 -0400 Subject: [PATCH] ENH: raise warning when no heartbeat messages received in a file --- tpx3awkward/_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tpx3awkward/_utils.py b/tpx3awkward/_utils.py index 73f6d71..dcd1d16 100644 --- a/tpx3awkward/_utils.py +++ b/tpx3awkward/_utils.py @@ -286,6 +286,7 @@ def _ingest_raw_data(data): # Check if there were no heartbeat messages and adjust for potential SPIDR rollovers if heartbeat_msb is None: + warnings.warn("No heartbeat messages received; decoded timestamps may be inaccurate.") head_max = max(ts[:10]) tail_min = min(ts[-10:]) if (head_max > tail_min) and (head_max - tail_min > 2**32):