astrodatagui: FlaredetectorWidget: explicitely state parameters for periodogram max indices

This commit is contained in:
2024-04-15 15:05:36 +02:00
parent f2a7cc08dc
commit 1814467090
+1 -1
View File
@@ -199,7 +199,7 @@ class FlaredetectorWidget(QtWidgets.QWidget):
lc = lc.to_periodogram(method=self.PeriodogramState["Method"]) lc = lc.to_periodogram(method=self.PeriodogramState["Method"])
label = "Periodogram" label = "Periodogram"
maxPowers = findMaxIndices(lc, 4) maxPowers = findMaxIndices(lc, num=4, distance=100, sortByHighest=False)
print(maxPowers) print(maxPowers)
self.lbMaxPowerPeriod1.setText(str(lc.period[maxPowers[0]])) self.lbMaxPowerPeriod1.setText(str(lc.period[maxPowers[0]]))
self.lbMaxPowerPeriod2.setText(str(lc.period[maxPowers[1]])) self.lbMaxPowerPeriod2.setText(str(lc.period[maxPowers[1]]))