Skip to content

Commit bb39194

Browse files
committed
fix acq_software name
1 parent 8d04e10 commit bb39194

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

element_array_ephys/spike_sorting/si_spike_sorting.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,13 @@ def make(self, key):
117117
assert len(oe_probe.recording_info["recording_files"]) == 1
118118
data_dir = oe_probe.recording_info["recording_files"][0]
119119
else:
120+
acq_software = acq_software.replace(" ", "").lower()
120121
si_extractor: si.extractors.neoextractors = (
121-
si.extractors.extractorlist.recording_extractor_full_dict[
122-
acq_software.replace(" ", "").lower()
123-
]
122+
si.extractors.extractorlist.recording_extractor_full_dict[acq_software]
124123
) # data extractor object
125124

126125
stream_names, stream_ids = si.extractors.get_neo_streams(
127-
acq_software.strip().lower(), folder_path=data_dir
126+
acq_software, folder_path=data_dir
128127
)
129128
si_recording: si.BaseRecording = si_extractor[acq_software](
130129
folder_path=data_dir, stream_name=stream_names[0]

0 commit comments

Comments
 (0)