kima-org / kima

A data analysis framework for exoplanet detection
http://www.kima.science
MIT License
4 stars 1 forks source link

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

Open Kamuish opened 6 months ago

Kamuish commented 6 months ago

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