Skip to content

Commit 997f795

Browse files
authored
Merge pull request #1535 from alejoe91/fix-biocam-dtype
Fix biocam dtype
2 parents 0f770e3 + 40b13f2 commit 997f795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/biocamrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop, strea
148148
step = channel_indexes.step or 1
149149
channel_indexes = [ch for ch in range(start, stop, step)]
150150

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

0 commit comments

Comments
 (0)