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

kima.display is broken for RVFHMmodel results of a single instrument #14

Open
Kamuish opened this issue Apr 10, 2024 · 0 comments
Open

Comments

@Kamuish
Copy link
Contributor

Kamuish commented Apr 10, 2024

The issue is localized in the phase_plot:

Traceback (most recent call last):
  File "/home/amiguel/first_author_articles/WG1targets_Andre/kima_analysis/plot_kima.py", line 56, in <module>
    res.phase_plot(p)
  File "/home/amiguel/first_author_articles/WG1targets_Andre/.venv/lib/python3.9/site-packages/kima/pykima/display.py", line 2249, in phase_plot
    v = res.full_model(sample, t=None, include_planets=False)
  File "/home/amiguel/first_author_articles/WG1targets_Andre/.venv/lib/python3.9/site-packages/kima/pykima/results.py", line 2322, in full_model
    deterministic = self.eval_model(sample, t, **kwargs)
  File "/home/amiguel/first_author_articles/WG1targets_Andre/.venv/lib/python3.9/site-packages/kima/pykima/results.py", line 2008, in eval_model
    offsets = np.pad(offsets.reshape(-1, ni - 1), ((0, 0), (0, 1)))
ValueError: cannot reshape array of size 0 into shape (0)

The same does not occur for the GPmodel or the RVFWHM with more than one instrument

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

1 participant