From 39da56ab6c6aebde57a509c9f1a03f671f984c01 Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Mon, 13 May 2024 15:56:22 +0200 Subject: [PATCH] astrodatagui: btCountAllFlaresClicked: safe all combinations in dictionary --- main/astrodatagui/AstrodataGUI.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/main/astrodatagui/AstrodataGUI.py b/main/astrodatagui/AstrodataGUI.py index 6621627..239ecdd 100644 --- a/main/astrodatagui/AstrodataGUI.py +++ b/main/astrodatagui/AstrodataGUI.py @@ -1,3 +1,4 @@ +from msilib import sequence from PyQt5 import QtWidgets, uic, Qt from PyQt5 import QtCore import os @@ -344,4 +345,22 @@ class AstrodataGUI(QtWidgets.QMainWindow): self.flaredetectorPreview.setPeriodogramState(periodogramEnabled, method, view) def btCountAllFlaresClicked(self): - pass \ No newline at end of file + allStarsDictList = [] + + for star in self.starDB.getAllStars(): + starName = star[0] + sequences = self.starDB.getStarSequences(starName) + infos = self.starDB.getStarInfos(starName) + for sourceSeq in sequences: + source = sourceSeq["Source"] + seq = sourceSeq["Sequence"] + filePath = self.starDB.getFilePath(starName, source, seq) + allStarsDictList.append({"StarName": starName, + "SpType": infos["SpType"], + "RotVel": infos["RotVel"], + "RotVelUnit": infos["RotVelUnit"], + "Distance": infos["Distance"], + "DistanceUnit": infos["DistanceUnit"], + "Source": source, + "Sequence": seq, + "FilePath": filePath})