asteroid_spinprops 0.2.31__py3-none-any.whl → 0.2.32__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- asteroid_spinprops/ssolib/periodest.py +20 -2
- {asteroid_spinprops-0.2.31.dist-info → asteroid_spinprops-0.2.32.dist-info}/METADATA +1 -1
- {asteroid_spinprops-0.2.31.dist-info → asteroid_spinprops-0.2.32.dist-info}/RECORD +4 -4
- {asteroid_spinprops-0.2.31.dist-info → asteroid_spinprops-0.2.32.dist-info}/WHEEL +0 -0
|
@@ -194,6 +194,24 @@ def get_multiband_period_estimate(
|
|
|
194
194
|
|
|
195
195
|
period_in = 2 * (1 / f_chosen)
|
|
196
196
|
|
|
197
|
+
model_final = LombScargleMultiband(
|
|
198
|
+
residuals_dataframe["jd"].values,
|
|
199
|
+
residuals_dataframe["residuals"].values,
|
|
200
|
+
residuals_dataframe["filters"].values,
|
|
201
|
+
residuals_dataframe["sigma"].values,
|
|
202
|
+
normalization="standard",
|
|
203
|
+
fit_mean=True,
|
|
204
|
+
nterms_base=k_val,
|
|
205
|
+
nterms_band=1,
|
|
206
|
+
)
|
|
207
|
+
frequency_final, power_final = model_final.autopower(
|
|
208
|
+
method="fast",
|
|
209
|
+
sb_method="fastnifty_chi2",
|
|
210
|
+
minimum_frequency=1 / period_range[1],
|
|
211
|
+
maximum_frequency=1 / period_range[0],
|
|
212
|
+
samples_per_peak=5,
|
|
213
|
+
)
|
|
214
|
+
|
|
197
215
|
ls = LombScargle(
|
|
198
216
|
residuals_dataframe["jd"].values,
|
|
199
217
|
np.ones(len(residuals_dataframe["jd"])),
|
|
@@ -207,7 +225,7 @@ def get_multiband_period_estimate(
|
|
|
207
225
|
)
|
|
208
226
|
|
|
209
227
|
pindex, heights = find_peaks(
|
|
210
|
-
|
|
228
|
+
power_final,
|
|
211
229
|
height=0.1,
|
|
212
230
|
threshold=None,
|
|
213
231
|
distance=260,
|
|
@@ -221,7 +239,7 @@ def get_multiband_period_estimate(
|
|
|
221
239
|
hindex = np.argsort(heights["peak_heights"])[::-1][:5]
|
|
222
240
|
hindexW = np.argsort(heightsW["peak_heights"])[::-1][:5]
|
|
223
241
|
|
|
224
|
-
signal_peaks =
|
|
242
|
+
signal_peaks = frequency_final[pindex[hindex]]
|
|
225
243
|
window_peaks = frequencyW[pindexW[hindexW]]
|
|
226
244
|
|
|
227
245
|
return period_in, k_val, p_rms, signal_peaks, window_peaks
|
|
@@ -5,7 +5,7 @@ asteroid_spinprops/ssolib/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-I
|
|
|
5
5
|
asteroid_spinprops/ssolib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
asteroid_spinprops/ssolib/dataprep.py,sha256=s4bXDCU15IsdIg9uLwFuO2VEGCxewrXkFIQolG8mKao,18716
|
|
7
7
|
asteroid_spinprops/ssolib/modelfit.py,sha256=UICILWgNJp2Xked6ekQKt2LsLT0-AvMb6Pbhbvh16NI,18984
|
|
8
|
-
asteroid_spinprops/ssolib/periodest.py,sha256=
|
|
8
|
+
asteroid_spinprops/ssolib/periodest.py,sha256=Go-O1m76y2cCCyhg-gQb_24TnUPUIqyZPSzBB5XttTw,12708
|
|
9
9
|
asteroid_spinprops/ssolib/pipetools.py,sha256=DNu4mg8M69c2SHc2KHR5lsshNdsskeB7vNsZad_H0mo,5338
|
|
10
10
|
asteroid_spinprops/ssolib/ssptools.py,sha256=DlSgYtXenztRAtEV9d4itzp5OZMjkbXkW2yZ_Qumu4U,4490
|
|
11
11
|
asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_1.parquet,sha256=qVTCAlpBZLNxCwuKAMwKdjh9yeHFvfrQcr-ebFMQOVI,56455
|
|
@@ -26,6 +26,6 @@ asteroid_spinprops/ssolib/testing/ephemeris_testing/Poullain,sha256=_KgyYqgy01zK
|
|
|
26
26
|
asteroid_spinprops/ssolib/testing/ephemeris_testing/Sonneberga,sha256=ER9ysLNa0kpGP78jM4SpHLLIbHpiDlIAXJ88eqw3gRU,700347
|
|
27
27
|
asteroid_spinprops/ssolib/testing/testing_ssoname_keys.pkl,sha256=-gnpow_I4uTpPXlF9sLcVJ2YixWp5YXJHkVHIMjtOzo,241
|
|
28
28
|
asteroid_spinprops/ssolib/utils.py,sha256=-9D161lmdPjHQC-t8j3wO7IdQiQ95QLwu7dvmLrCopA,12385
|
|
29
|
-
asteroid_spinprops-0.2.
|
|
30
|
-
asteroid_spinprops-0.2.
|
|
31
|
-
asteroid_spinprops-0.2.
|
|
29
|
+
asteroid_spinprops-0.2.32.dist-info/METADATA,sha256=CoXoVU4gUtYiWuIMXyJ5UhSQUenlTzFLPj9N2N0X8GE,2831
|
|
30
|
+
asteroid_spinprops-0.2.32.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
31
|
+
asteroid_spinprops-0.2.32.dist-info/RECORD,,
|
|
File without changes
|