Skip to content

Commit

Permalink
fix another plexon overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Oct 17, 2024
1 parent 2d688a8 commit 40f017d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neo/rawio/plexonrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 40f017d

Please sign in to comment.