Skip to content

Commit

Permalink
another overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Dec 13, 2024
1 parent 0ae6e76 commit beb8827
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 @@ -209,7 +209,9 @@ def _parse_header(self):
for index, pos in enumerate(positions):
bl_header = data[pos : pos + 16].view(DataBlockHeader)[0]

timestamp = bl_header["UpperByteOf5ByteTimestamp"] * 2**32 + bl_header["TimeStamp"]
current_upper_byte_of_5_byte_timestamp = int(bl_header["UpperByteOf5ByteTimestamp"])
current_bl_timestamp = int(bl_header["TimeStamp"])
timestamp = current_upper_byte_of_5_byte_timestamp * 2**32 + current_bl_timestamp
n1 = bl_header["NumberOfWaveforms"]
n2 = bl_header["NumberOfWordsInWaveform"]
sample_count = n1 * n2
Expand Down

0 comments on commit beb8827

Please sign in to comment.