@@ -126,7 +126,7 @@ class AcquisitionSoftware(dj.Lookup):
126126 acq_software ( varchar(24) ): Acquisition software, e.g,. SpikeGLX, OpenEphys
127127 """
128128
129- definition = """ # Software used for recording of neuropixels probes
129+ definition = """ # Name of software used for recording of neuropixels probes - SpikeGLX or Open Ephys
130130 acq_software: varchar(24)
131131 """
132132 contents = zip (["SpikeGLX" , "Open Ephys" ])
@@ -180,7 +180,10 @@ def auto_generate_entries(cls, session_key):
180180 "probe_type" : spikeglx_meta .probe_model ,
181181 "probe" : spikeglx_meta .probe_SN ,
182182 }
183- if probe_key ["probe" ] not in [p ["probe" ] for p in probe_list ]:
183+ if (
184+ probe_key ["probe" ] not in [p ["probe" ] for p in probe_list ]
185+ and probe_key not in probe .Probe ()
186+ ):
184187 probe_list .append (probe_key )
185188
186189 probe_dir = meta_filepath .parent
@@ -204,7 +207,10 @@ def auto_generate_entries(cls, session_key):
204207 "probe_type" : oe_probe .probe_model ,
205208 "probe" : oe_probe .probe_SN ,
206209 }
207- if probe_key ["probe" ] not in [p ["probe" ] for p in probe_list ]:
210+ if (
211+ probe_key ["probe" ] not in [p ["probe" ] for p in probe_list ]
212+ and probe_key not in probe .Probe ()
213+ ):
208214 probe_list .append (probe_key )
209215 probe_insertion_list .append (
210216 {
@@ -533,7 +539,6 @@ def make(self, key):
533539 - 1 : 0 : - self ._skip_channel_counts
534540 ]
535541
536- # (sample x channel)
537542 lfp = oe_probe .lfp_timeseries [:, lfp_channel_ind ]
538543 lfp = (
539544 lfp * np .array (oe_probe .lfp_meta ["channels_gains" ])[lfp_channel_ind ]
0 commit comments