feat(esmvaltool): emit series kind (model vs reference)#776
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds an explicit ChangesSeries kind field
Sequence Diagram(s)sequenceDiagram
participant base.py
participant series_def
participant SeriesMetricValue
base.py->>series_def: inspect dimensions
series_def-->>base.py: dimensions list
base.py->>base.py: kind = "reference" if reference_source_id in dimensions else "model"
base.py->>SeriesMetricValue: construct with kind
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
ESMValTool series now emit an explicit
kindof eithermodelorreference, so an observation curve can be distinguished from a model curve directly instead of being inferred from the presence ofreference_source_idin the series dimensions.The shared series extractor derives
kindfrom whether the series definition carriesreference_source_id; all series-emitting diagnostics already follow that convention. Since the defaultmodelis omitted from the serialised bundle, only reference series change on disk: the four affected regression baselines (cloud-radiative-effects, enso-basic-climatology, and sea-ice-area-basic for both cmip6 and cmip7) were re-minted, and every other committed bundle is unchanged and replays without drift. Scalars are unaffected, as ESMValTool emits no reference scalars.A new contract test asserts, across every committed
series.json, that each series carries the correctkindand a uniform presentation-attribute key set.Checklist
Please confirm that this pull request has done the following:
changelog/Summary by CodeRabbit
New Features
kindfield to distinguish model vs reference curves more reliably, improving how observation curves are presented.Bug Fixes
kindlabelling.Tests
kindassignment rules and consistent attribute coverage across committedseries.jsonbaselines.