Bug fixes.

This commit is contained in:
lwark
2024-12-18 13:35:04 -06:00
parent b1544da730
commit 5fd36308b2
10 changed files with 70 additions and 43 deletions

View File

@@ -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 *

View File

@@ -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(

View File

@@ -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: