astrodatagui: FlaredetectorWidget: show max power period for periodogram
This commit is contained in:
@@ -20,6 +20,16 @@ class FlaredetectorWidget(QtWidgets.QWidget):
|
|||||||
self.mainLayout.addWidget(toolbar)
|
self.mainLayout.addWidget(toolbar)
|
||||||
self.mainLayout.addWidget(fc)
|
self.mainLayout.addWidget(fc)
|
||||||
|
|
||||||
|
self.periodogramInfoGroupBox = QtWidgets.QGroupBox("Periodogram Infos")
|
||||||
|
self.periodogramInfoLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.periodogramInfoGroupBox.setLayout(self.periodogramInfoLayout)
|
||||||
|
self.periodogramInfoGroupBox.setVisible(False)
|
||||||
|
self.lbMaxPowerPeriodText = QtWidgets.QLabel("Max Power Period: ")
|
||||||
|
self.lbMaxPowerPeriod = QtWidgets.QLabel("")
|
||||||
|
self.periodogramInfoLayout.addWidget(self.lbMaxPowerPeriodText)
|
||||||
|
self.periodogramInfoLayout.addWidget(self.lbMaxPowerPeriod)
|
||||||
|
self.mainLayout.addWidget(self.periodogramInfoGroupBox)
|
||||||
|
|
||||||
self.fluxType = "sap_flux"
|
self.fluxType = "sap_flux"
|
||||||
self.NormalizeState = {"Enabled": False, "Scale": "unscaled"}
|
self.NormalizeState = {"Enabled": False, "Scale": "unscaled"}
|
||||||
self.RemoveOutliersState = {"Enabled": False, "Sigma": 5.0}
|
self.RemoveOutliersState = {"Enabled": False, "Sigma": 5.0}
|
||||||
@@ -159,6 +169,9 @@ class FlaredetectorWidget(QtWidgets.QWidget):
|
|||||||
if(self.PeriodogramState["Enabled"]):
|
if(self.PeriodogramState["Enabled"]):
|
||||||
lc = lc.to_periodogram(method=self.PeriodogramState["Method"])
|
lc = lc.to_periodogram(method=self.PeriodogramState["Method"])
|
||||||
label = "Periodogram"
|
label = "Periodogram"
|
||||||
|
self.lbMaxPowerPeriod.setText(str(lc.period_at_max_power))
|
||||||
|
|
||||||
|
self.periodogramInfoGroupBox.setVisible(self.PeriodogramState["Enabled"])
|
||||||
|
|
||||||
self.figureAxis.clear()
|
self.figureAxis.clear()
|
||||||
if(self.FoldState["Enabled"]):
|
if(self.FoldState["Enabled"]):
|
||||||
|
|||||||
Reference in New Issue
Block a user