Skip to content

Commit

Permalink
Merge pull request #1612 from zm711/plexon-overflow-2-fix
Browse files Browse the repository at this point in the history
Fix another Plexon overflow + Limit Doc build to NumPy < 2.0 while we finish updating individual IOs
  • Loading branch information
alejoe91 authored Dec 13, 2024
2 parents 830c461 + 2a70edb commit 9fd9ef1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ docs = [
"matplotlib",
"nixio",
"pynwb",
"igor2"
"igor2",
"numpy<2.0" # https://github.com/NeuralEnsemble/python-neo/pull/1612
]

dev = [
Expand Down

0 comments on commit 9fd9ef1

Please sign in to comment.