astrodatagui: hand dictionary list over to FlareSummaryPlotGUI

This commit is contained in:
2024-05-17 10:52:43 +02:00
parent 462b5f6703
commit 07e8b9b2ed
2 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -351,9 +351,8 @@ class AstrodataGUI(QtWidgets.QMainWindow):
self.flaredetectorPreview.setPeriodogramState(periodogramEnabled, method, view) self.flaredetectorPreview.setPeriodogramState(periodogramEnabled, method, view)
def btCountAllFlaresClickedDone(self, allFlaresDictList): def btCountAllFlaresClickedDone(self, allFlaresDictList):
print(allFlaresDictList)
self.calcAllFlaresThread = None self.calcAllFlaresThread = None
self.AllFlaresWindow = FlareSummaryPlotGUI() self.AllFlaresWindow = FlareSummaryPlotGUI(allFlaresDictList)
self.AllFlaresWindow.show() self.AllFlaresWindow.show()
def btCountAllFlaresClicked(self): def btCountAllFlaresClicked(self):
+4 -2
View File
@@ -6,8 +6,10 @@ from matplotlib.backends.backend_qtagg import (
class FlareSummaryPlotGUI(QWidget): class FlareSummaryPlotGUI(QWidget):
def __init__(self): def __init__(self, starFLareDictList):
super().__init__() super(FlareSummaryPlotGUI, self).__init__()
self.starFLareDictList = starFLareDictList
self.mainLayout = QVBoxLayout() self.mainLayout = QVBoxLayout()
self.setLayout(self.mainLayout) self.setLayout(self.mainLayout)