Skip to content

Commit 9697b9e

Browse files
committed
Try/Catch in RawEphysQC to try both probes
1 parent 70e38ee commit 9697b9e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

ibllib/ephys/ephysqc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def run(self, update: bool = False, overwrite: bool = True, stream: bool = None,
110110
if self.data.ap_meta:
111111
rms_file = self.probe_path.joinpath("_iblqc_ephysChannels.apRMS.npy")
112112
if rms_file.exists() and not overwrite:
113-
_logger.warning(f'File {rms_file} already exists and overwrite=False. Skipping RMS compute.')
113+
_logger.warning(f'RMS map already exists for .ap data in {self.probe_path}, skipping. '
114+
f'Use overwrite option.')
114115
median_rms = np.load(rms_file)
115116
else:
116117
rl = self.data.ap_meta.fileTimeSecs

ibllib/pipes/ephys_preprocessing.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,12 @@ def _run(self, overwrite=False):
6969
pids = [p['id'] for p in create_alyx_probe_insertions(self.session_path, one=self.one)]
7070
qc_files = []
7171
for pid in pids:
72-
eqc = ephysqc.EphysQC(pid, session_path=self.session_path, one=self.one)
73-
qc_files.extend(eqc.run(update=True, overwrite=overwrite))
72+
try:
73+
eqc = ephysqc.EphysQC(pid, session_path=self.session_path, one=self.one)
74+
qc_files.extend(eqc.run(update=True, overwrite=overwrite))
75+
except AssertionError:
76+
self.status = -1
77+
continue
7478
return qc_files
7579

7680

0 commit comments

Comments
 (0)