Skip to content

Commit 1859085

Browse files
author
Thinh Nguyen
authored
handles single probe recording in "Neuropix-PXI" format
1 parent c2d9f47 commit 1859085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

element_array_ephys/readers/openephys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def __init__(self, processor, probe_index=0):
211211
self._channels_connected = {int(re.search(r'\d+$', k).group()): int(v)
212212
for k, v in self.probe_info.pop('CHANNELSTATUS').items()}
213213
else: # Neuropix-PXI
214-
self.probe_info = processor['EDITOR']['NP_PROBE'][probe_index]
214+
self.probe_info = processor['EDITOR']['NP_PROBE'] if isinstance(processor['EDITOR']['NP_PROBE'], dict) else processor['EDITOR']['NP_PROBE'][probe_index]
215215
self.probe_SN = self.probe_info['@probe_serial_number']
216216
self.probe_model = _probe_model_name_mapping[self.probe_info['@probe_name']]
217217

0 commit comments

Comments
 (0)