Skip to content

Conversation

@HansKallekleiv
Copy link
Collaborator

When cross-plotting between ensembles we need to find common realizations instead of comparing the total count.
Currently nothing was plotted.

image

Also fixes coloring by prioritizing x => y => default

@HansKallekleiv HansKallekleiv added bug Something isn't working 2025 EOY release labels Dec 11, 2025
Copy link
Collaborator

@anders-kiaer anders-kiaer left a comment

Choose a reason for hiding this comment

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

LGTM 🐞

// We need to find common realization keys across all used channels in order to cross-plot
const commonKeys = [...xMap.keys()]
.filter((key) => yMap.has(key) && (colorMap === null || colorMap.has(key)))
.sort((a, b) => (a as number) - (b as number));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the sorting step required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2025 EOY release bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants