File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def make(self, key):
385385 oe_probe = get_openephys_probe_data (key )
386386
387387 lfp_channel_ind = np .r_ [
388- len (oe_probe .lfp_meta ['channels_ids ' ])- 1 :0 :- self ._skip_channel_counts ]
388+ len (oe_probe .lfp_meta ['channels_indices ' ])- 1 :0 :- self ._skip_channel_counts ]
389389
390390 lfp = oe_probe .lfp_timeseries [:, lfp_channel_ind ] # (sample x channel)
391391 lfp = (lfp * np .array (oe_probe .lfp_meta ['channels_gains' ])[lfp_channel_ind ]).T # (channel x sample)
@@ -402,7 +402,8 @@ def make(self, key):
402402 probe_electrodes = {key ['electrode' ]: key
403403 for key in electrode_query .fetch ('KEY' )}
404404
405- electrode_keys .extend (probe_electrodes [channel_idx ] for channel_idx in oe_probe .lfp_meta ['channels_ids' ])
405+ electrode_keys .extend (probe_electrodes [channel_idx ]
406+ for channel_idx in oe_probe .lfp_meta ['channels_indices' ])
406407 else :
407408 raise NotImplementedError (f'LFP extraction from acquisition software'
408409 f' of type { acq_software } is not yet implemented' )
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def load_probe_data(self):
102102
103103 meta .update (** continuous_info ,
104104 channels_indices = channels_indices ,
105- channels_ids = analog_signal .channels_ids ,
105+ channels_ids = analog_signal .channel_ids ,
106106 channels_names = analog_signal .channel_names ,
107107 channels_gains = analog_signal .gains )
108108
You can’t perform that action at this time.
0 commit comments