File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -686,9 +686,9 @@ def get_neuropixels_channel2electrode_map(ephys_recording_key, acq_software):
686
686
687
687
elif acq_software == 'Open Ephys' :
688
688
sess_dir = pathlib .Path (get_session_directory (ephys_recording_key ))
689
- loaded_oe = openephys .OpenEphys (sess_dir )
690
- probe_sn = (ProbeInsertion & ephys_recording_key ).fetch1 ('probe' )
691
- oe_probe = loaded_oe .probes [probe_sn ]
689
+ openephys_dataset = openephys .OpenEphys (sess_dir )
690
+ probe_serial_number = (ProbeInsertion & ephys_recording_key ).fetch1 ('probe' )
691
+ probe_dataset = openephys_dataset .probes [probe_serial_number ]
692
692
693
693
electrode_query = (probe .ProbeType .Electrode
694
694
* probe .ElectrodeConfig .Electrode
@@ -699,7 +699,7 @@ def get_neuropixels_channel2electrode_map(ephys_recording_key, acq_software):
699
699
700
700
channel2electrode_map = {
701
701
channel_idx : probe_electrodes [channel_idx ]
702
- for channel_idx in oe_probe .ap_meta ['channels_ids' ]}
702
+ for channel_idx in probe_dataset .ap_meta ['channels_ids' ]}
703
703
704
704
return channel2electrode_map
705
705
You can’t perform that action at this time.
0 commit comments