Skip to content

Commit b17979a

Browse files
authored
Merge pull request #1585 from zm711/plexon-overflow
PlexonIO: Fix another plexon overflow
2 parents 2d688a8 + 40f017d commit b17979a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

neo/rawio/plexonrawio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ def _parse_header(self):
155155
if self.progress_bar:
156156
progress_bar.close()
157157

158-
self._last_timestamps = bl_header["UpperByteOf5ByteTimestamp"] * 2**32 + bl_header["TimeStamp"]
158+
upper_byte_of_5_byte_timestamp = int(bl_header["UpperByteOf5ByteTimestamp"])
159+
bl_header_timestamp = int(bl_header["TimeStamp"])
160+
self._last_timestamps = upper_byte_of_5_byte_timestamp * 2**32 + bl_header_timestamp
159161

160162
# ... and finalize them in self._data_blocks
161163
# for a faster access depending on type (1, 4, 5)

0 commit comments

Comments
 (0)