Bug fixes.
This commit is contained in:
@@ -2,15 +2,17 @@
|
||||
Contains all custom generated PyQT6 derivative widgets.
|
||||
"""
|
||||
|
||||
from .app import App
|
||||
from .controls_chart import *
|
||||
from .equipment_usage import *
|
||||
from .functions import *
|
||||
from .gel_checker import *
|
||||
from .info_tab import *
|
||||
from .misc import *
|
||||
from .omni_search import *
|
||||
from .pop_ups import *
|
||||
from .submission_details import *
|
||||
from .submission_table import *
|
||||
from .submission_widget import *
|
||||
from .controls_chart import *
|
||||
from .submission_details import *
|
||||
from .equipment_usage import *
|
||||
from .gel_checker import *
|
||||
from .summary import Summary
|
||||
from .turnaround import TurnaroundTime
|
||||
from .app import App
|
||||
from .summary import *
|
||||
from .turnaround import *
|
||||
|
||||
@@ -160,7 +160,7 @@ class RoleComboBox(QWidget):
|
||||
PydEquipment|None: PydEquipment matching form
|
||||
"""
|
||||
eq = Equipment.query(name=self.box.currentText())
|
||||
tips = [PydTips(name=item.currentText(), role=item.objectName().lstrip("tips").lstrip("_")) for item in
|
||||
tips = [PydTips(name=item.currentText(), role=item.objectName().lstrip("tips").lstrip("_"), lot="") for item in
|
||||
self.findChildren(QComboBox) if item.objectName().startswith("tips")]
|
||||
try:
|
||||
return PydEquipment(
|
||||
|
||||
@@ -6,7 +6,7 @@ from PyQt6.QtWidgets import (
|
||||
QComboBox, QDateEdit, QLineEdit, QLabel, QCheckBox, QHBoxLayout, QGridLayout
|
||||
)
|
||||
from PyQt6.QtCore import pyqtSignal, Qt, QSignalBlocker
|
||||
from . import select_open_file, select_save_file
|
||||
from .functions import select_open_file, select_save_file
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from tools import Report, Result, check_not_nan, main_form_style, report_result
|
||||
@@ -338,11 +338,15 @@ class SubmissionFormWidget(QWidget):
|
||||
report = Report()
|
||||
result = self.parse_form()
|
||||
report.add_result(result)
|
||||
# allow = not all([item.lot.isEnabled() for item in self.findChildren(self.ReagentFormWidget)])
|
||||
exempt = [item.reagent.role for item in self.findChildren(self.ReagentFormWidget) if not item.lot.isEnabled()]
|
||||
# if allow:
|
||||
# logger.warning(f"Some reagents are disabled, allowing incomplete kit.")
|
||||
if self.disabler.checkbox.isChecked():
|
||||
_, result = self.pyd.check_kit_integrity()
|
||||
_, result = self.pyd.check_kit_integrity(exempt=exempt)
|
||||
report.add_result(result)
|
||||
if len(result.results) > 0:
|
||||
return
|
||||
return report
|
||||
base_submission, result = self.pyd.to_sql()
|
||||
# NOTE: check output message for issues
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user