asteroid_spinprops 0.2.22__py3-none-any.whl → 0.2.23__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 +4 -3
- {asteroid_spinprops-0.2.22.dist-info → asteroid_spinprops-0.2.23.dist-info}/METADATA +1 -1
- {asteroid_spinprops-0.2.22.dist-info → asteroid_spinprops-0.2.23.dist-info}/RECORD +4 -7
- asteroid_spinprops/ssolib/.ruff_cache/.gitignore +0 -2
- asteroid_spinprops/ssolib/.ruff_cache/0.13.2/1980339045096230685 +0 -0
- asteroid_spinprops/ssolib/.ruff_cache/CACHEDIR.TAG +0 -1
- {asteroid_spinprops-0.2.22.dist-info → asteroid_spinprops-0.2.23.dist-info}/WHEEL +0 -0
|
@@ -7,6 +7,7 @@ import matplotlib.pyplot as plt
|
|
|
7
7
|
from astropy.timeseries import LombScargleMultiband, LombScargle
|
|
8
8
|
from scipy.signal import find_peaks
|
|
9
9
|
import nifty_ls # noqa: F401
|
|
10
|
+
from scipy.stats import f as ftest
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
def alias_func(x, i, j, p_feat):
|
|
@@ -121,8 +122,8 @@ def get_multiband_period_estimate(
|
|
|
121
122
|
|
|
122
123
|
# y_model.shape is (n_bands, len(time))
|
|
123
124
|
|
|
124
|
-
for n,
|
|
125
|
-
bindex = np.where(residuals_dataframe["filters"].values ==
|
|
125
|
+
for n, ff in enumerate(bands):
|
|
126
|
+
bindex = np.where(residuals_dataframe["filters"].values == ff)
|
|
126
127
|
residuals[bindex] = (
|
|
127
128
|
residuals_dataframe["residuals"].values[bindex] - y_model[n][bindex]
|
|
128
129
|
)
|
|
@@ -141,7 +142,7 @@ def get_multiband_period_estimate(
|
|
|
141
142
|
F = ((rss - rss_next) / (dof - dof_next)) / (rss_next / dof_next)
|
|
142
143
|
|
|
143
144
|
# Here crit = Fstat value for which model_2 (more complex) is in fact better than model_1 (less complex)
|
|
144
|
-
crit =
|
|
145
|
+
crit = ftest.ppf(
|
|
145
146
|
q=0.99,
|
|
146
147
|
dfn=n_params_next - n_params,
|
|
147
148
|
dfd=len(residuals) - n_params_next,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
asteroid_spinprops/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
asteroid_spinprops/ssolib/.ruff_cache/.gitignore,sha256=njpg8ebsSuYCFcEdVLFxOSdF7CXp3e1DPVvZITY68xY,35
|
|
3
|
-
asteroid_spinprops/ssolib/.ruff_cache/0.13.2/1980339045096230685,sha256=sdFMPj-MpFBvqh6kNKbA3DLSABPaYn625V6O9z99A5U,99
|
|
4
|
-
asteroid_spinprops/ssolib/.ruff_cache/CACHEDIR.TAG,sha256=WVMVbX4MVkpCclExbq8m-IcOZIOuIZf5FrYw5Pk-Ma4,43
|
|
5
2
|
asteroid_spinprops/ssolib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
3
|
asteroid_spinprops/ssolib/dataprep.py,sha256=s4bXDCU15IsdIg9uLwFuO2VEGCxewrXkFIQolG8mKao,18716
|
|
7
4
|
asteroid_spinprops/ssolib/modelfit.py,sha256=uPtWthzuiYVbabxIy_osQkKZQ6v6G8KYhY0nrMpJpy8,18826
|
|
8
|
-
asteroid_spinprops/ssolib/periodest.py,sha256=
|
|
5
|
+
asteroid_spinprops/ssolib/periodest.py,sha256=EPJSS7cEQRktt9rS0T6pe8QgHwCese7iSSFt67-JNy0,11067
|
|
9
6
|
asteroid_spinprops/ssolib/pipetools.py,sha256=DNu4mg8M69c2SHc2KHR5lsshNdsskeB7vNsZad_H0mo,5338
|
|
10
7
|
asteroid_spinprops/ssolib/ssptools.py,sha256=DlSgYtXenztRAtEV9d4itzp5OZMjkbXkW2yZ_Qumu4U,4490
|
|
11
8
|
asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_1.parquet,sha256=qVTCAlpBZLNxCwuKAMwKdjh9yeHFvfrQcr-ebFMQOVI,56455
|
|
@@ -26,6 +23,6 @@ asteroid_spinprops/ssolib/testing/ephemeris_testing/Poullain,sha256=_KgyYqgy01zK
|
|
|
26
23
|
asteroid_spinprops/ssolib/testing/ephemeris_testing/Sonneberga,sha256=ER9ysLNa0kpGP78jM4SpHLLIbHpiDlIAXJ88eqw3gRU,700347
|
|
27
24
|
asteroid_spinprops/ssolib/testing/testing_ssoname_keys.pkl,sha256=-gnpow_I4uTpPXlF9sLcVJ2YixWp5YXJHkVHIMjtOzo,241
|
|
28
25
|
asteroid_spinprops/ssolib/utils.py,sha256=Re8VQMikHFxGX9PPnIGTPBuwJvuX6pMyujaNnfSCwVE,12390
|
|
29
|
-
asteroid_spinprops-0.2.
|
|
30
|
-
asteroid_spinprops-0.2.
|
|
31
|
-
asteroid_spinprops-0.2.
|
|
26
|
+
asteroid_spinprops-0.2.23.dist-info/METADATA,sha256=kjbxR4WmZvtjjO7lzlckLgr-aIhyho69DHdf2ghjDe0,2831
|
|
27
|
+
asteroid_spinprops-0.2.23.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
28
|
+
asteroid_spinprops-0.2.23.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Signature: 8a477f597d28d172789f06886806bc55
|
|
File without changes
|