Skip to content

Fix/interpolation with compatible axis - #155

Merged
olivhoenen merged 2 commits into
iterorganization:developfrom
olivhoenen:fix/interpolation_with_compatible_axis
Oct 26, 2026
Merged

olivhoenen merged 2 commits into
iterorganization:developfrom
olivhoenen:fix/interpolation_with_compatible_axis

Conversation

@olivhoenen

Copy link
Copy Markdown
Contributor

Fix #134 and this comment

  • backend: remove the same-IDS/same-path limitation for data interpolation (expanding its use to cases with different IDSs from the same URI)
  • frontend: don't require the time path to match exacly, and allow asking the backend to interpolate between IDSs

Use-case: now allow plotting core_profiles/global_quantities/ip, equilibrium/time_slice/global_quantities/ip and summary/global_quantities/ip on the same plot

A node was only interpolated over nodes of the same IDS and path, but
only the coordinates of the target are used, and their number and names
are already checked. Each IDS has its own time vector, even in one data
entry: core_profiles/global_quantities/ip, summary/global_quantities/ip/
value and equilibrium/time_slice[:]/global_quantities/ip of ITER
130013/10 have 108 points each, 189 together. Any target node is now
accepted, so they can be put on common coordinates.

A node in an AoS of an IDS with heterogeneous time (time_slice[:]/time)
could not be plotted at all: its per-slice times were not converted to
numbers before taking their union.

Assisted-by: Claude/opus-5
core_profiles, summary and equilibrium ip could each be plotted but not
on the same plot. The grid took the IDSs of one entry to share their
coordinates, yet each IDS has its own time vector: no common coordinates
were asked for, and the x axis check refused the time path of another
IDS (#summary/time against #core_profiles/time).

A trace is now interpolated over a node drawn from each source of
another IDS, and the x axis check compares the time path only when
there is nothing to interpolate over. This needs the back-end to accept
a target node of another IDS.

Assisted-by: Claude/opus-5
@olivhoenen olivhoenen added this to the 0.4.0 milestone Oct 23, 2026

@prasad-sawantdesai prasad-sawantdesai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM..

Image

@olivhoenen
olivhoenen merged commit 31d55dc into iterorganization:develop Oct 26, 2026
13 checks passed
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

Successfully merging this pull request may close these issues.

Incorrect signal path check when putting two plots on one canva

2 participants