@@ -23,9 +23,6 @@ class SpikeGLXRecordingExtractor(NeoBaseRecordingExtractor):
2323 ----------
2424 folder_path : str
2525 The folder path to load the recordings from.
26- load_sync_channel : bool default: False
27- Whether or not to load the last channel in the stream, which is typically used for synchronization.
28- If True, then the probe is not loaded.
2926 stream_id : str or None, default: None
3027 If there are several streams, specify the stream id you want to load.
3128 For example, "imec0.ap", "nidq", or "imec0.lf".
@@ -40,24 +37,21 @@ class SpikeGLXRecordingExtractor(NeoBaseRecordingExtractor):
4037 Examples
4138 --------
4239 >>> from spikeinterface.extractors import read_spikeglx
43- >>> recording = read_spikeglx(folder_path=r'path_to_folder_with_data', load_sync_channel=False)
44- # we can load the sync channel, but then the probe is not loaded
45- >>> recording = read_spikeglx(folder_path=r'pat_to_folder_with_data', load_sync_channel=True)
40+ >>> recording = read_spikeglx(folder_path=r'path_to_folder_with_data')
4641 """
4742
4843 NeoRawIOClass = "SpikeGLXRawIO"
4944
5045 def __init__ (
5146 self ,
5247 folder_path ,
53- load_sync_channel = False ,
5448 stream_id = None ,
5549 stream_name = None ,
5650 all_annotations : bool = False ,
5751 use_names_as_ids : bool = False ,
5852 ):
5953
60- neo_kwargs = self .map_to_neo_kwargs (folder_path , load_sync_channel = load_sync_channel )
54+ neo_kwargs = self .map_to_neo_kwargs (folder_path )
6155 NeoBaseRecordingExtractor .__init__ (
6256 self ,
6357 stream_id = stream_id ,
@@ -67,7 +61,7 @@ def __init__(
6761 ** neo_kwargs ,
6862 )
6963
70- self ._kwargs .update (dict (folder_path = str (Path (folder_path ).absolute ()), load_sync_channel = load_sync_channel ))
64+ self ._kwargs .update (dict (folder_path = str (Path (folder_path ).absolute ())))
7165
7266 stream_is_nidq = "nidq" in self .stream_id
7367 stream_is_one_box = "obx" in self .stream_id
@@ -83,7 +77,7 @@ def __init__(
8377
8478 ap_meta_filename = meta_filename .replace (".lf" , ".ap" ) if "lf" in self .stream_id else meta_filename
8579 ap_meta_file_exists = Path (ap_meta_filename ).exists ()
86- add_probe_properties = ap_meta_file_exists and not load_sync_channel
80+ add_probe_properties = ap_meta_file_exists
8781
8882 if add_probe_properties :
8983 probe = probeinterface .read_spikeglx (ap_meta_filename )
@@ -105,8 +99,8 @@ def __init__(
10599 warnings .warn (warning_message , UserWarning , stacklevel = 2 )
106100
107101 @classmethod
108- def map_to_neo_kwargs (cls , folder_path , load_sync_channel = False ):
109- neo_kwargs = {"dirname" : str (folder_path ), "load_sync_channel" : load_sync_channel }
102+ def map_to_neo_kwargs (cls , folder_path ):
103+ neo_kwargs = {"dirname" : str (folder_path )}
110104 return neo_kwargs
111105
112106
0 commit comments