Skip to content

Update CMIP7 unit tests - #884

Merged
mauzey1 merged 10 commits into
mainfrom
879-update-cmip7-tests-to-use-cmip7-cmor-tables
Nov 20, 2025
Merged

mauzey1 merged 10 commits into
mainfrom
879-update-cmip7-tests-to-use-cmip7-cmor-tables

Conversation

@mauzey1

@mauzey1 mauzey1 commented Nov 12, 2025

Copy link
Copy Markdown
Collaborator

Resolves #879

CMIP7 unit tests will now use tables from cmip7-cmor-tables, which is now a submodule in this repo.

This will also allow the adding of mip_era and data_specs_version as global variables if they are defined in the CV even if they are not listed in required_global_attributes.

@matthew-mizielinski Would you mind reviewing this PR?

Comment thread Test/test_cmor_CMIP7.py Resolved
@YanchunHe

Copy link
Copy Markdown

Thanks for the great effort. This is very useful!

As we are using the library's Fortran API, could you also provide a Fortran version of the test file?

I had some earlier test, and it seems some source code is still hard-coded with CMIP6_CV.json.

@mauzey1

mauzey1 commented Nov 14, 2025

Copy link
Copy Markdown
Collaborator Author

@durack1 I've migrated some changes to the CMIP7 CV in TestTables from #851 to here. Any other CV changes that I should move?

@mauzey1

mauzey1 commented Nov 18, 2025

Copy link
Copy Markdown
Collaborator Author

@matthew-mizielinski Are you okay with these changes? If so, we can have these changes merged.

@durack1 Are these change sufficient enough that we can close issue #843 and PR #851?

@YanchunHe We'll create another issue for creating a Fortran CMIP7 unit test and have it handled in a separate PR.

@mauzey1 mauzey1 mentioned this pull request Nov 18, 2025
@durack1

durack1 commented Nov 19, 2025 •

Copy link
Copy Markdown
Collaborator

@mauzey1 as many of the parts (CVs, tables, etc) are still moving, it might be best to merge these changes, have a nightly created and for testing to continue before a release is minted. @matthew-mizielinski and @JamesAnstey are you ok with this approach?

@matthew-mizielinski

Copy link
Copy Markdown

Hi @mauzey1, I think this looks ok to me. I will note that on second review that you've turned some CMIP6 style tests into CMIP7 style tests rather than adding tests -- this could allow issues with the CMIP6 style functionality to creep in, but the risk of this will be low.

@mauzey1 as many of the parts (CVs, tables, etc) are still moving, it might be best to merge these changes, have a nightly created an for testing to continue before a release is minted. @matthew-mizielinski and @JamesAnstey are you ok with this approach?

Yes, I don't think we need a release until some of the issues related to repacking have been looked at.

@durack1 durack1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@mauzey1 apologies for the delay, let's get this merged and into nightly

@mauzey1
mauzey1 merged commit 3f843b3 into main Nov 20, 2025
15 checks passed
@mauzey1
mauzey1 deleted the 879-update-cmip7-tests-to-use-cmip7-cmor-tables branch November 20, 2025 23:32
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.

Update CMIP7 tests to use cmip7-cmor-tables

4 participants