@@ -25,14 +25,24 @@ class CedRecordingExtractor(NeoBaseRecordingExtractor):
2525 If there are several streams, specify the stream name you want to load.
2626 all_annotations : bool, default: False
2727 Load exhaustively all annotations from neo.
28+ use_names_as_ids : bool, default: False
29+ Determines the format of the channel IDs used by the extractor. If set to True, the channel IDs will be the
30+ names from NeoRawIO. If set to False, the channel IDs will be the ids provided by NeoRawIO.
2831 """
2932
3033 NeoRawIOClass = "CedRawIO"
3134
32- def __init__ (self , file_path , stream_id = None , stream_name = None , all_annotations = False ):
35+ def __init__ (
36+ self , file_path , stream_id = None , stream_name = None , all_annotations : bool = False , use_names_as_ids : bool = False
37+ ):
3338 neo_kwargs = self .map_to_neo_kwargs (file_path )
3439 NeoBaseRecordingExtractor .__init__ (
35- self , stream_id = stream_id , stream_name = stream_name , all_annotations = all_annotations , ** neo_kwargs
40+ self ,
41+ stream_id = stream_id ,
42+ stream_name = stream_name ,
43+ all_annotations = all_annotations ,
44+ use_names_as_ids = use_names_as_ids ,
45+ ** neo_kwargs ,
3646 )
3747 self ._kwargs .update (dict (file_path = str (Path (file_path ).absolute ())))
3848 self .extra_requirements .append ("neo[ced]" )
0 commit comments