Skip to content

Commit 342a86e

Browse files
committed
add notes if ins CRITICAL
1 parent 9de96b8 commit 342a86e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

atlaselectrophysiology/load_data.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import glob
1111
import os
1212
from atlaselectrophysiology.load_histology import download_histology_data, tif2nrrd
13+
import ibllib.qc.critical_reasons as usrpmt
1314

1415
ONE_BASE_URL = "https://alyx.internationalbrainlab.org"
1516

@@ -429,6 +430,9 @@ def upload_dj(self, align_qc, ephys_qc, ephys_desc):
429430
ephys_qc_description=ephys_dj_str),
430431
allow_direct_insert=True, replace=True)
431432
self.alyx_str = ephys_qc.upper() + ': ' + ephys_desc_str
433+
# TODO CHECK BELOW IS CORRECT
434+
if ephys_qc.upper() == 'CRITICAL':
435+
usrpmt.main_gui(eid=self.probe_id, reasons_selected=ephys_desc)
432436

433437
def update_qc(self, upload_alyx=True, upload_flatiron=True):
434438
# if resolved just update the alignment_number

0 commit comments

Comments
 (0)