Skip to content

Commit db9eca8

Browse files
authored
Merge pull request #1679 from h-mayorquin/fix_neuralynx_numpy_stream_names
Remove numpy scalar from stream name representation for neuralynx
2 parents 8720bb2 + 8ffb225 commit db9eca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/neuralynxrawio/neuralynxrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def _parse_header(self):
263263
t_start = copy.copy(file_mmap[0][0])
264264
else: # empty file
265265
t_start = 0
266-
stream_prop = (info["sampling_rate"], n_packets, t_start)
266+
stream_prop = (float(info["sampling_rate"]), int(n_packets), float(t_start))
267267
if stream_prop not in stream_props:
268268
stream_props[stream_prop] = {"stream_id": len(stream_props), "filenames": [filename]}
269269
else:

0 commit comments

Comments
 (0)