Skip to content

Commit 4b5d5ec

Browse files
committed
fix stream names representation
1 parent 8f6570e commit 4b5d5ec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/spikeinterface/extractors/neoextractors/neobaseextractor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def get_streams(cls, *args, **kwargs):
7373
neo_reader = cls.get_neo_io_reader(cls.NeoRawIOClass, **neo_kwargs)
7474

7575
stream_channels = neo_reader.header["signal_streams"]
76-
stream_names = list(stream_channels["name"])
77-
stream_ids = list(stream_channels["id"])
76+
stream_names = stream_channels["name"].tolist()
77+
stream_ids = stream_channels["id"].tolist()
7878
return stream_names, stream_ids
7979

8080
def build_stream_id_to_sampling_frequency_dict(self) -> Dict[str, float]:
@@ -200,8 +200,8 @@ def __init__(
200200
use_names_as_ids = False
201201

202202
stream_channels = self.neo_reader.header["signal_streams"]
203-
stream_names = list(stream_channels["name"])
204-
stream_ids = list(stream_channels["id"])
203+
stream_names = stream_channels["name"].tolist()
204+
stream_ids = stream_channels["id"].tolist()
205205

206206
if stream_id is None and stream_name is None:
207207
if stream_channels.size > 1:

0 commit comments

Comments
 (0)