Skip to content

Commit 2e1b35e

Browse files
committed
scalar
1 parent e5ddfa3 commit 2e1b35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/plexon2rawio/plexon2rawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _get_signal_size(self, block_index, seg_index, stream_index):
301301
stream_id = self.header['signal_streams'][stream_index]['id']
302302
stream_characteristic = list(self.signal_stream_characteristics.values())[stream_index]
303303
assert stream_id == stream_characteristic.id
304-
return stream_characteristic.n_samples
304+
return int(stream_characteristic.n_samples) # Avoids returning a numpy.int64 scalar
305305

306306
def _get_signal_t_start(self, block_index, seg_index, stream_index):
307307
# This returns the t_start of signals as a float value in seconds

0 commit comments

Comments
 (0)