Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

singular optical covariance matrix #78

Open
Pachacoti opened this issue Aug 29, 2024 · 1 comment
Open

singular optical covariance matrix #78

Pachacoti opened this issue Aug 29, 2024 · 1 comment
Assignees

Comments

@Pachacoti
Copy link

The following error is encountered when I tried to run

>>> fit_sim = fit.FitSimulation(init_sol, obs_df, init_cov, n_iter_max=n_iter_max, de_kernel=de_kernel, nongrav_info=nongrav_info)

for Apophis:

[[ 4.0e-08 -8.0e-08]
 [-8.0e-08  1.6e-07]]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mthui/Software/anaconda3/envs/grss/lib/python3.12/site-packages/grss/fit/fit_simulation.py", line 549, in __init__
    self._compute_obs_weights()
  File "/home/mthui/Software/anaconda3/envs/grss/lib/python3.12/site-packages/grss/fit/fit_simulation.py", line 772, in _compute_obs_weights
    raise ValueError("Optical covariance matrix is singular.")
ValueError: Optical covariance matrix is singular.
@rahil-makadia
Copy link
Owner

I took a look, and it seems that Apophis has an observation with perfect correlation in the observation database, which leads to a singular observation covariance. I would just remove that observation from the dataframe for now

@rahil-makadia rahil-makadia self-assigned this Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants