From 40f017d6125562adcb55da71e61b00cd6b75e2f0 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:19:46 -0400 Subject: [PATCH] fix another plexon overflow --- neo/rawio/plexonrawio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neo/rawio/plexonrawio.py b/neo/rawio/plexonrawio.py index 62b0a1a88..10370c9e1 100644 --- a/neo/rawio/plexonrawio.py +++ b/neo/rawio/plexonrawio.py @@ -155,7 +155,9 @@ def _parse_header(self): if self.progress_bar: progress_bar.close() - self._last_timestamps = bl_header["UpperByteOf5ByteTimestamp"] * 2**32 + bl_header["TimeStamp"] + upper_byte_of_5_byte_timestamp = int(bl_header["UpperByteOf5ByteTimestamp"]) + bl_header_timestamp = int(bl_header["TimeStamp"]) + self._last_timestamps = upper_byte_of_5_byte_timestamp * 2**32 + bl_header_timestamp # ... and finalize them in self._data_blocks # for a faster access depending on type (1, 4, 5)