Skip to content

Make TCRE diagnostic compatible with CMIP7 data#702

Draft
schlunma wants to merge 19 commits into
Climate-REF:mainfrom
schlunma:tcre_cmip7
Draft

Make TCRE diagnostic compatible with CMIP7 data#702
schlunma wants to merge 19 commits into
Climate-REF:mainfrom
schlunma:tcre_cmip7

Conversation

@schlunma

Copy link
Copy Markdown
Contributor

Description

Addresses #647.

Checklist

Please confirm that this pull request has done the following:

  • Tests added
  • Documentation added (where applicable)
  • Changelog item added to changelog/

@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ool/src/climate_ref_esmvaltool/diagnostics/tcre.py 73.33% 2 Missing and 2 partials ⚠️
Flag Coverage Δ
core 92.30% <ø> (ø)
providers 86.17% <75.00%> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ef-esmvaltool/src/climate_ref_esmvaltool/recipe.py 86.82% <100.00%> (ø)
...ool/src/climate_ref_esmvaltool/diagnostics/tcre.py 83.67% <73.33%> (-5.46%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@schlunma

schlunma commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

After adding a series to this diagnostic it seems that one of the regressions tests is not failing even thought the expected series is empty...

@lewisjared

Copy link
Copy Markdown
Contributor

Can you make an issue to capture that?

@schlunma

schlunma commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

See #703.

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 36380bb8-f8b5-45ce-899f-1831fe197ae6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

Bump the transient-climate-response-emissions diagnostic version to 2
because the CMIP7 changes alter results and must trigger recomputation.
Mint the native baseline for the transient-climate-response-emissions
CMIP6 test case against ESMValTool 12cb5309 and bump to test_case_version 2.
Replay matches the committed bundle. The CMIP7 test case is not minted:
its esm-flat10 (flat10MIP) input data is not yet available to fetch.
* origin/main:
  docs: simplify gate comments and regression docs
  fix(test-cases): migrate-manifests preserves recorded diagnostic_version
  fix: backfill diagnostic_version for baselines merged from main
  docs: rename changelog entry to PR number 770
  feat(regression): couple Diagnostic.version into the CI coupling gate
  feat(example): extract model/reference/bias time series as CMEC series
  refactor(example): rename diagnostic to global-sst-bias and drop version guard
  test: close NetCDF datasets in surface-temperature end-to-end tests
  feat(example): use ocean SST (tos) and add comparison figures
  test(example): mint regression baselines for surface-temperature-bias
  fix: address review feedback on surface temperature diagnostic
  test: update solver regression snapshots for new example diagnostic
  feat(example): add model-vs-obs surface temperature diagnostic and 5-minute quickstart
  fix: address review feedback
  chore: add changelog for config CLI uplift
  feat: expand config CLI management commands

# Conflicts:
#	packages/climate-ref-esmvaltool/tests/test-data/transient-climate-response-emissions/cmip6/manifest.json
After merging main (diagnostic_version gate + schema 2 backfill), migrate
the TCRE baselines to record diagnostic_version 2, matching the in-code
Diagnostic.version. CMIP6 replay-matches the committed bundle; CMIP7 has no
native baseline yet (its esm-flat10 input data is not available to mint),
so the gate selects skip on its committed bundle.
…angelog

Drop the four regression artifacts under tests/test-data/regression that
were committed by accident; the central Framework-A regression set was
removed from main. Add the news fragment for the CMIP7 compatibility work.
@lewisjared

Copy link
Copy Markdown
Contributor

I can't mint a CMIP7 baseline until we have real data to download (esm-flat10 doesn't exist)

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.

2 participants