Skip to content

Commit 414e8df

Browse files
authored
names to singular (#3879)
1 parent 3302570 commit 414e8df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/spikeinterface/extractors/neoextractors/neobaseextractor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def __init__(
293293
warnings.warn(warning_msg)
294294

295295
if not use_names_as_ids:
296-
self.set_property("channel_names", signal_channels["name"])
296+
self.set_property("channel_name", signal_channels["name"])
297297

298298
if all_annotations:
299299
block_ann = self.neo_reader.raw_annotations["blocks"][self.block_index]
@@ -316,9 +316,9 @@ def __init__(
316316
array_annotations = sig_ann["__array_annotations__"]
317317
# We do not add this because is confusing for the user to have this repeated
318318
array_annotations.pop("channel_ids", None)
319-
# This is duplicated when using channel_names as ids
319+
# This is duplicated when using `use_names_as_ids`
320320
if use_names_as_ids:
321-
array_annotations.pop("channel_names", None)
321+
array_annotations.pop("channel_name", None)
322322

323323
# vector array_annotations are channel properties
324324
for key, values in array_annotations.items():

0 commit comments

Comments
 (0)