Skip to content

Commit 514ea80

Browse files
committed
Merge branch 'insertionQCreason_GUI' into develop
2 parents 9ae7a30 + 63feffb commit 514ea80

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

atlaselectrophysiology/ephys_gui_setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import numpy as np
55
from random import randrange
66
from atlaselectrophysiology.AdaptedAxisItem import replace_axis
7+
from ibllib.qc.critical_reasons import REASONS_INS_CRIT_GUI
8+
79
pg.setConfigOption('background', 'w')
810
pg.setConfigOption('foreground', 'k')
911

@@ -490,7 +492,7 @@ def init_interaction_features(self):
490492
self.desc_layout = QtWidgets.QVBoxLayout()
491493
self.desc_layout.setSpacing(5)
492494
self.desc_buttons.setExclusive(False)
493-
options = ["Noise and artifact", "Drift", "Poor neural yield", "Brain Damage", "Other"]
495+
options = REASONS_INS_CRIT_GUI
494496
for i, val in enumerate(options):
495497

496498
button = QtWidgets.QCheckBox(val)

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

@@ -430,6 +431,9 @@ def upload_dj(self, align_qc, ephys_qc, ephys_desc):
430431
allow_direct_insert=True, replace=True)
431432
self.alyx_str = ephys_qc.upper() + ': ' + ephys_desc_str
432433

434+
if ephys_qc.upper() == 'CRITICAL':
435+
usrpmt.main_gui(eid=self.probe_id, reasons_selected=ephys_desc, one=self.one)
436+
433437
def update_qc(self, upload_alyx=True, upload_flatiron=True):
434438
# if resolved just update the alignment_number
435439
align_qc = AlignmentQC(self.probe_id, one=self.one, brain_atlas=self.brain_atlas)

0 commit comments

Comments
 (0)