Skip to content

Conversation

@daflack
Copy link
Contributor

@daflack daflack commented Jan 2, 2026

Switching to cube.extract() rather than cube.extract_cube() to enable multiple models to have derived diagnostics calculated.

Fixes #1791

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

Coverage

@daflack
Copy link
Contributor Author

daflack commented Jan 2, 2026

Looks like it has worked, and appears to work for a recipe I used that was failing due to this error requiring input fields A and B to calculate something (or at least produced a new error that will need fixing so will raise an issue for that shortly). I'm not sure if I have done exactly what you were aiming at, and am not convinced with the tests update.

@daflack daflack requested a review from jfrost-mo January 2, 2026 10:40
@daflack daflack marked this pull request as ready for review January 5, 2026 08:54
@daflack daflack force-pushed the 1791_extract_multiple_variables branch from 1ed092c to c07110b Compare January 5, 2026 09:19
Switching to cube.extract() rather than cube.extract_cube() to
enable multiple models to have derived diagnostics calculated.

Fixes #1791
@daflack daflack force-pushed the 1791_extract_multiple_variables branch from c07110b to 8175ecd Compare January 5, 2026 13:42
Document that filter_multiple_cubes can now produce multiple cubes per
constraint, and fix a small typo in a comment.
Copy link
Member

@jfrost-mo jfrost-mo left a comment

Choose a reason for hiding this comment

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

I've pushed a commit (9e2ef62) to this branch that updates the docstring, as it is outside the range that GitHub can comment on.

Otherwise the change looks good.

@jfrost-mo jfrost-mo merged commit 9e2ef62 into main Jan 6, 2026
12 checks passed
@jfrost-mo jfrost-mo deleted the 1791_extract_multiple_variables branch January 6, 2026 08:30
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.

Allow filter_multiple_cubes to output more than one cube per constraint

3 participants