From 40b13f2e85a4d9030ac1a53fca13610382e3e200 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Tue, 27 Aug 2024 19:14:52 +0200 Subject: [PATCH] Fix biocam dtype --- neo/rawio/biocamrawio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/rawio/biocamrawio.py b/neo/rawio/biocamrawio.py index 5e3db0569..7aefa98bf 100644 --- a/neo/rawio/biocamrawio.py +++ b/neo/rawio/biocamrawio.py @@ -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):