asteroid_spinprops 1.3.9__tar.gz → 1.4.1__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.1}/PKG-INFO +1 -1
- asteroid_spinprops-1.4.1/asteroid_spinprops/ssolib/.ruff_cache/.gitignore +2 -0
- asteroid_spinprops-1.4.1/asteroid_spinprops/ssolib/.ruff_cache/0.13.2/133359248614630308 +0 -0
- asteroid_spinprops-1.4.1/asteroid_spinprops/ssolib/.ruff_cache/0.13.2/16682903993888920117 +0 -0
- asteroid_spinprops-1.4.1/asteroid_spinprops/ssolib/.ruff_cache/0.13.2/1980339045096230685 +0 -0
- asteroid_spinprops-1.4.1/asteroid_spinprops/ssolib/.ruff_cache/CACHEDIR.TAG +1 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/modelfit.py +8 -2
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/utils.py +3 -3
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/pyproject.toml +1 -1
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/README.md +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/__init__.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/__init__.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/dataprep.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/periodest.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/pipetools.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/ssptools.py +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_1.parquet +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_2.parquet +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2000 WL152 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2001 PC +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2001 SG276 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2008 GX32 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2009 BE185 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2011 EY17 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2134 T-1 +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Bellmore +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Dermott +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Duke +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Izenberg +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Lermontov +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Poullain +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Sonneberga +0 -0
- {asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/asteroid_spinprops/ssolib/testing/testing_ssoname_keys.pkl +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Signature: 8a477f597d28d172789f06886806bc55
|
|
@@ -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 = [
|
|
@@ -350,6 +351,9 @@ def get_fit_params(
|
|
|
350
351
|
else:
|
|
351
352
|
SOCCA_opt["Period_class"] = 0 # Alias
|
|
352
353
|
SOCCA_opt["Nbs"] = Nbs
|
|
354
|
+
SOCCA_opt["f_obs"] = f_obs
|
|
355
|
+
SOCCA_opt["signal_peaks"] = signal_peaks
|
|
356
|
+
SOCCA_opt["window_peaks"] = window_peaks
|
|
353
357
|
except Exception:
|
|
354
358
|
SOCCA_opt["Period_class"] = -1 # Classification error
|
|
355
359
|
if period_in is None:
|
|
@@ -447,6 +451,8 @@ def get_fit_params(
|
|
|
447
451
|
if terminator:
|
|
448
452
|
if remap:
|
|
449
453
|
p0in = np.concatenate((p0[3:], p0[:3]))
|
|
454
|
+
if remap_kwargs["use_angles"] is True:
|
|
455
|
+
p0in = np.insert(p0in, 0, 1.0) # Initiate rho at 1
|
|
450
456
|
p0_latent = parameter_remapping(
|
|
451
457
|
p0in, physical_to_latent=True, **remap_kwargs
|
|
452
458
|
)
|
|
@@ -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.1"
|
|
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.1}/asteroid_spinprops/ssolib/periodest.py
RENAMED
|
File without changes
|
{asteroid_spinprops-1.3.9 → asteroid_spinprops-1.4.1}/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
|