Skip to content

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

@Kamuish

Description

@Kamuish

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions