flaredetector: util: check if its a Periodogram

This commit is contained in:
2024-03-26 12:37:17 +01:00
parent f756873687
commit e5db328b9a
2 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ class FlaredetectorWidget(QtWidgets.QWidget):
lc = lc.to_periodogram(method=self.PeriodogramState["Method"])
label = "Periodogram"
maxPowers = findMaxIndices(lc.power, 4)
maxPowers = findMaxIndices(lc, 4)
print(maxPowers)
self.lbMaxPowerPeriod1.setText(str(lc.period[maxPowers[0]]))
self.lbMaxPowerPeriod2.setText(str(lc.period[maxPowers[1]]))