@@ -228,7 +228,7 @@ def make(self, key):
228
228
spikeglx_rec_dir = (root_dir / spikeglx_meta_fp ).parent
229
229
spikeglx_recording = spikeglx .SpikeGLX (spikeglx_rec_dir )
230
230
231
- lfp_chn_ind = spikeglx_recording .lfmeta .recording_channels [- 1 ::- self .skip_chn_counts ]
231
+ lfp_chn_ind = spikeglx_recording .lfmeta .recording_channels [- 1 ::- self ._skip_chn_counts ]
232
232
233
233
# Extract LFP data at specified channels and convert to uV
234
234
lfp = spikeglx_recording .lf_timeseries [:, lfp_chn_ind ] # (sample x channel)
@@ -258,10 +258,10 @@ def make(self, key):
258
258
loaded_oe = openephys .OpenEphys (sess_dir )
259
259
oe_probe = loaded_oe .probes [probe_sn ]
260
260
261
- lfp_chn_ind = np .arange (len (oe_probe .lfp_meta ['channels_ids' ]))[- 1 ::- self .skip_chn_counts ]
261
+ lfp_chn_ind = np .arange (len (oe_probe .lfp_meta ['channels_ids' ]))[- 1 ::- self ._skip_chn_counts ]
262
262
263
263
lfp = oe_probe .lfp_timeseries [:, lfp_chn_ind ] # (sample x channel)
264
- lfp = (lfp * oe_probe .lfp_meta ['channels_gains' ][lfp_chn_ind ]).T # (channel x sample)
264
+ lfp = (lfp * np . array ( oe_probe .lfp_meta ['channels_gains' ]) [lfp_chn_ind ]).T # (channel x sample)
265
265
lfp_timestamps = oe_probe .lfp_timestamps
266
266
267
267
self .insert1 (dict (key ,
@@ -271,7 +271,7 @@ def make(self, key):
271
271
272
272
q_electrodes = probe .ProbeType .Electrode * probe .ElectrodeConfig .Electrode * EphysRecording & key
273
273
electrodes = []
274
- for chn_idx in oe_probe .lfp_meta ['channels_ids' ][lfp_chn_ind ]:
274
+ for chn_idx in np . array ( oe_probe .lfp_meta ['channels_ids' ]) [lfp_chn_ind ]:
275
275
electrodes .append ((q_electrodes & {'electrode' : chn_idx }).fetch1 ('KEY' ))
276
276
277
277
chn_lfp = list (zip (electrodes , lfp ))
0 commit comments