asteroid_spinprops 1.2.1__tar.gz → 1.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asteroid_spinprops
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Collection of tools used for fitting sHG1G2 and SOCCA photometric models to sparse asteroid photometry
5
5
  License: MIT
6
6
  Author: Odysseas
@@ -122,7 +122,7 @@ def get_fit_params(
122
122
  data, model_parameters=shg1g2_params
123
123
  )
124
124
  except Exception:
125
- SOCCA_opt = {"Failed at period search preliminary steps": 3}
125
+ SOCCA_opt = {"Failed at period search preliminary steps": 1}
126
126
  return SOCCA_opt
127
127
  if period_in is None:
128
128
  # Period search boundaries (in days)
@@ -151,8 +151,11 @@ def get_fit_params(
151
151
  resid_df=residuals_dataframe, p_min=pmin, p_max=pmax, k=int(k_val)
152
152
  )
153
153
  except Exception:
154
- SOCCA_opt = {"Failed at period search after": 4}
154
+ SOCCA_opt = {"Failed at period search after": 1}
155
155
  return SOCCA_opt
156
+ except IndexError:
157
+ SOCCA_opt = {"Failed at bootsrap sampling": 1}
158
+ return SOCCA_opt
156
159
  period_sy = p_in
157
160
  else:
158
161
  period_sy = period_in
@@ -268,7 +271,7 @@ def get_fit_params(
268
271
  SOCCA_opt["prms"] = p_rms
269
272
  SOCCA_opt["k_terms"] = k_val
270
273
  except Exception:
271
- SOCCA_opt = {"Failed at SOCCA inversion": 5}
274
+ SOCCA_opt = {"Failed at SOCCA inversion": 1}
272
275
  return SOCCA_opt
273
276
  else:
274
277
  period_si_t, alt_period_si_t, _ = utils.estimate_sidereal_period(
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "asteroid_spinprops"
3
- version = "1.2.1"
3
+ version = "1.2.2"
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"}