From 07e8b9b2edba6493e0c2990d30a97a6e725baf86 Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Fri, 17 May 2024 10:52:43 +0200 Subject: [PATCH] astrodatagui: hand dictionary list over to FlareSummaryPlotGUI --- main/astrodatagui/AstrodataGUI.py | 3 +-- main/astrodatagui/FlareSummaryPlotGUI.py | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/main/astrodatagui/AstrodataGUI.py b/main/astrodatagui/AstrodataGUI.py index eb2b447..d389c3e 100644 --- a/main/astrodatagui/AstrodataGUI.py +++ b/main/astrodatagui/AstrodataGUI.py @@ -351,9 +351,8 @@ class AstrodataGUI(QtWidgets.QMainWindow): self.flaredetectorPreview.setPeriodogramState(periodogramEnabled, method, view) def btCountAllFlaresClickedDone(self, allFlaresDictList): - print(allFlaresDictList) self.calcAllFlaresThread = None - self.AllFlaresWindow = FlareSummaryPlotGUI() + self.AllFlaresWindow = FlareSummaryPlotGUI(allFlaresDictList) self.AllFlaresWindow.show() def btCountAllFlaresClicked(self): diff --git a/main/astrodatagui/FlareSummaryPlotGUI.py b/main/astrodatagui/FlareSummaryPlotGUI.py index a85df4c..11eb740 100644 --- a/main/astrodatagui/FlareSummaryPlotGUI.py +++ b/main/astrodatagui/FlareSummaryPlotGUI.py @@ -6,8 +6,10 @@ from matplotlib.backends.backend_qtagg import ( class FlareSummaryPlotGUI(QWidget): - def __init__(self): - super().__init__() + def __init__(self, starFLareDictList): + super(FlareSummaryPlotGUI, self).__init__() + + self.starFLareDictList = starFLareDictList self.mainLayout = QVBoxLayout() self.setLayout(self.mainLayout)