@@ -86,7 +86,7 @@ def load_probe_data(self):
86
86
for probe_index in range (len (processor ['EDITOR' ]['PROBE' ])):
87
87
probe = Probe (processor , probe_index )
88
88
probes [probe .probe_SN ] = probe
89
- else :
89
+ else : # Neuropix-PXI
90
90
for probe_index in range (len (processor ['EDITOR' ]['NP_PROBE' ])):
91
91
probe = Probe (processor , probe_index )
92
92
probes [probe .probe_SN ] = probe
@@ -96,6 +96,11 @@ def load_probe_data(self):
96
96
probe = probes [probe_SN ]
97
97
98
98
for rec in self .experiment .recordings :
99
+ assert len (rec ._oebin ['continuous' ]) == len (rec .analog_signals ), \
100
+ f'Mismatch in the number of continuous data' \
101
+ f' - expecting { len (rec ._oebin ["continuous" ])} (from structure.oebin file),' \
102
+ f' found { len (rec .analog_signals )} (in continuous folder)'
103
+
99
104
for continuous_info , analog_signal in zip (rec ._oebin ['continuous' ],
100
105
rec .analog_signals ):
101
106
if continuous_info ['source_processor_id' ] != probe .processor_id :
@@ -170,7 +175,7 @@ def __init__(self, processor, probe_index=0):
170
175
self .probe_model = _probe_model_name_mapper [processor ['@pluginName' ]]
171
176
self ._channels_connected = {int (re .search (r'\d+$' , k ).group ()): int (v )
172
177
for k , v in self .probe_info .pop ('CHANNELSTATUS' ).items ()}
173
- else :
178
+ else : # Neuropix-PXI
174
179
self .probe_info = processor ['EDITOR' ]['NP_PROBE' ][probe_index ]
175
180
self .probe_SN = self .probe_info ['@probe_serial_number' ]
176
181
self .probe_model = _probe_model_name_mapper [self .probe_info ['@probe_name' ]]
0 commit comments