File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,18 @@ def __init__(
75
75
76
76
self ._kwargs .update (dict (folder_path = str (Path (folder_path ).absolute ()), load_sync_channel = load_sync_channel ))
77
77
78
+ stream_is_nidq_or_sync = "nidq" in self .stream_id or "SYNC" in self .stream_id
79
+ if stream_is_nidq_or_sync :
80
+ # Do not add probe information for the sync or nidq stream. Early return
81
+ return None
82
+
78
83
# Checks if the probe information is available and adds location, shanks and sample shift if available.
79
84
signals_info_dict = {e ["stream_name" ]: e for e in self .neo_reader .signals_info_list }
80
85
meta_filename = signals_info_dict [self .stream_id ]["meta_file" ]
86
+
81
87
ap_meta_filename = meta_filename .replace (".lf" , ".ap" ) if "lf" in self .stream_id else meta_filename
82
88
ap_meta_file_exists = Path (ap_meta_filename ).exists ()
83
- stream_is_not_nidq = "nidq" not in self .stream_id
84
- add_probe_properties = ap_meta_file_exists and stream_is_not_nidq and not load_sync_channel
89
+ add_probe_properties = ap_meta_file_exists and not load_sync_channel
85
90
86
91
if add_probe_properties :
87
92
probe = probeinterface .read_spikeglx (ap_meta_filename )
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ class SpikeGLXRecordingTest(RecordingCommonTestSuite, unittest.TestCase):
101
101
downloads = ["spikeglx" ]
102
102
entities = [
103
103
("spikeglx/Noise4Sam_g0" , {"stream_id" : "imec0.ap" }),
104
- ("spikeglx/Noise4Sam_g0" , {"stream_id" : "imec0.ap" , "load_sync_channel" : True }),
105
104
("spikeglx/Noise4Sam_g0" , {"stream_id" : "imec0.lf" }),
106
105
("spikeglx/Noise4Sam_g0" , {"stream_id" : "nidq" }),
106
+ ("spikeglx/Noise4Sam_g0" , {"stream_id" : "imec0.ap-SYNC" }),
107
107
]
108
108
109
109
You can’t perform that action at this time.
0 commit comments