Code cleanup.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Pane showing BC control concentrations summary.
|
||||
"""
|
||||
from PyQt6.QtWidgets import QWidget, QPushButton, QCheckBox, QLabel
|
||||
from PyQt6.QtWidgets import QWidget, QPushButton, QLabel
|
||||
from .info_tab import InfoPane
|
||||
from backend.excel.reports import ConcentrationMaker
|
||||
from frontend.visualizations.concentrations_chart import ConcentrationsChart
|
||||
@@ -25,6 +25,7 @@ class Concentrations(InfoPane):
|
||||
self.pos_neg = CheckableComboBox(parent=self)
|
||||
self.pos_neg.model().itemChanged.connect(self.update_data)
|
||||
self.pos_neg.setEditable(False)
|
||||
self.pos_neg.addItem("Select", header=True)
|
||||
self.pos_neg.addItem("Positive")
|
||||
self.pos_neg.addItem("Negative")
|
||||
self.pos_neg.addItem("Samples", start_checked=False)
|
||||
@@ -46,7 +47,6 @@ class Concentrations(InfoPane):
|
||||
super().update_data()
|
||||
months = self.diff_month(self.start_date, self.end_date)
|
||||
# logger.debug(f"Box checked: {self.all_box.isChecked()}")
|
||||
# chart_settings = dict(start_date=self.start_date, end_date=self.end_date, controls_only=self.all_box.isChecked())
|
||||
chart_settings = dict(start_date=self.start_date, end_date=self.end_date,
|
||||
include=include)
|
||||
self.report_obj = ConcentrationMaker(**chart_settings)
|
||||
|
||||
Reference in New Issue
Block a user