Skip to content

Commit

Permalink
Merge pull request #1535 from alejoe91/fix-biocam-dtype
Browse files Browse the repository at this point in the history
Fix biocam dtype
  • Loading branch information
alejoe91 authored Aug 27, 2024
2 parents 0f770e3 + 40b13f2 commit 997f795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/rawio/biocamrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop, strea
step = channel_indexes.step or 1
channel_indexes = [ch for ch in range(start, stop, step)]

sig_chunk = np.zeros((i_stop - i_start, len(channel_indexes)))
sig_chunk = np.zeros((i_stop - i_start, len(channel_indexes)), dtype=data.dtype)
# iterate through channels to prevent loading all channels into memory which can cause
# memory exhaustion. See https://github.com/SpikeInterface/spikeinterface/issues/3303
for index, channel_index in enumerate(channel_indexes):
Expand Down

0 comments on commit 997f795

Please sign in to comment.