File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -36,20 +36,26 @@ def __init__(self, experiment_dir):
36
36
oe_file = pyopenephys .File (self .sess_dir .parent ) # this is on the Record Node level
37
37
38
38
# extract the "recordings" for this session
39
- self .experiment = [ experiment for experiment in oe_file .experiments
40
- if pathlib .Path (experiment .absolute_foldername ) == self .sess_dir ][ 0 ]
39
+ self .experiment = next ( experiment for experiment in oe_file .experiments
40
+ if pathlib .Path (experiment .absolute_foldername ) == self .sess_dir )
41
41
42
42
self .recording_time = self .experiment .datetime
43
43
44
44
# extract probe data
45
45
self .probes = self .load_probe_data ()
46
46
47
47
def load_probe_data (self ):
48
+ """
49
+ Loop through all OpenEphys "processors", identify the processor for neuropixels probe, extract probe info
50
+ Loop through all recordings, associate recordings to the matching probes, extract recording info
51
+
52
+ Yielding multiple "Probe" objects, each containing meta information and timeseries data associated with each probe
53
+ """
54
+
48
55
probes = {}
49
56
for processor in self .experiment .settings ['SIGNALCHAIN' ]['PROCESSOR' ]:
50
57
if processor ['@pluginName' ] in ('Neuropix-PXI' , 'Neuropix-3a' ):
51
58
oe_probe = Probe (processor )
52
-
53
59
for rec in self .experiment .recordings :
54
60
for cont_info , analog_signal in zip (rec ._oebin ['continuous' ], rec .analog_signals ):
55
61
if cont_info ['source_processor_id' ] != oe_probe .processor_id :
You can’t perform that action at this time.
0 commit comments