astrodatagui: btCountAllFlaresClicked: safe all combinations in dictionary
This commit is contained in:
@@ -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
|
||||
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})
|
||||
|
||||
Reference in New Issue
Block a user