asteroid_spinprops 1.3.9__tar.gz → 1.4.0__tar.gz
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-1.3.9 → asteroid_spinprops-1.4.0}/PKG-INFO +1 -1
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/modelfit.py +5 -2
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/utils.py +3 -3
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/pyproject.toml +1 -1
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/README.md +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/__init__.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/__init__.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/dataprep.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/periodest.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/pipetools.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/ssptools.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_1.parquet +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_2.parquet +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2000 WL152 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2001 PC +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2001 SG276 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2008 GX32 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2009 BE185 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2011 EY17 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2134 T-1 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Bellmore +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Dermott +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Duke +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Izenberg +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Lermontov +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Poullain +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Sonneberga +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/testing/testing_ssoname_keys.pkl +0 -0
|
@@ -296,10 +296,11 @@ def get_fit_params(
|
|
|
296
296
|
G1, G2 = 0.15, 0.15
|
|
297
297
|
|
|
298
298
|
a_b, a_c = shg1g2_params["a_b"], shg1g2_params["a_c"]
|
|
299
|
-
if not (1 <= a_b <= 5 and 1 <= a_c <= 5)
|
|
299
|
+
if (not (1 <= a_b <= 5 and 1 <= a_c <= 5)) or np.isclose(
|
|
300
|
+
a_b, a_c, rtol=1e-6, atol=1e-9
|
|
301
|
+
):
|
|
300
302
|
a_b = 1.05
|
|
301
303
|
a_c = 1.5
|
|
302
|
-
|
|
303
304
|
for ra, dec in zip(ra_init, dec_init):
|
|
304
305
|
for period_sc in period_scan:
|
|
305
306
|
p_in = [
|
|
@@ -447,6 +448,8 @@ def get_fit_params(
|
|
|
447
448
|
if terminator:
|
|
448
449
|
if remap:
|
|
449
450
|
p0in = np.concatenate((p0[3:], p0[:3]))
|
|
451
|
+
if remap_kwargs["use_angles"] is True:
|
|
452
|
+
p0in = np.insert(p0in, 0, 1.0) # Initiate rho at 1
|
|
450
453
|
p0_latent = parameter_remapping(
|
|
451
454
|
p0in, physical_to_latent=True, **remap_kwargs
|
|
452
455
|
)
|
|
@@ -318,14 +318,14 @@ def oblateness(a_b, a_c):
|
|
|
318
318
|
Parameters
|
|
319
319
|
----------
|
|
320
320
|
a_b : float or array_like
|
|
321
|
-
Intermediate-to-long axis ratio (b
|
|
321
|
+
Intermediate-to-long axis ratio (a/b).
|
|
322
322
|
a_c : float or array_like
|
|
323
|
-
Short-to-long axis ratio (c
|
|
323
|
+
Short-to-long axis ratio (a/c).
|
|
324
324
|
|
|
325
325
|
Returns
|
|
326
326
|
-------
|
|
327
327
|
float or array_like
|
|
328
|
-
Oblateness
|
|
328
|
+
Oblateness
|
|
329
329
|
"""
|
|
330
330
|
return 1 / 2 * a_b / a_c + 1 / 2 * 1 / a_b
|
|
331
331
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "asteroid_spinprops"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.4.0"
|
|
4
4
|
description = "Collection of tools used for fitting sHG1G2 and SOCCA photometric models to sparse asteroid photometry"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Odysseas",email = "odysseas.xenos@proton.me"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/periodest.py
RENAMED
|
File without changes
|
{asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.0}/asteroid_spinprops/ssolib/pipetools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|