astrodatagui: FlaredetectorWidget: explicitely state parameters for periodogram max indices
This commit is contained in:
@@ -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]]))
|
||||||
|
|||||||
Reference in New Issue
Block a user