Skip to content

Commit fd5e9fa

Browse files
committed
Minor fixes
1 parent 1ea7c89 commit fd5e9fa

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

element_array_ephys/ephys_acute.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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]

element_array_ephys/ephys_no_curation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def activate(
5858
global _linking_module
5959
_linking_module = linking_module
6060

61-
# activate
6261
probe.activate(
6362
probe_schema_name, create_schema=create_schema, create_tables=create_tables
6463
)
@@ -315,8 +314,9 @@ def make(self, key):
315314
break
316315
else:
317316
raise FileNotFoundError(
318-
"Ephys recording data not found!"
319-
" Neither SpikeGLX nor Open Ephys recording files found"
317+
f"Ephys recording data not found!"
318+
f" Neither SpikeGLX nor Open Ephys recording files found"
319+
f" in {session_dir}"
320320
)
321321

322322
supported_probe_types = probe.ProbeType.fetch("probe_type")

0 commit comments

Comments
 (0)