Skip to content

Allow each model run to have a different experiment ID#332

Open
NParsonsMO wants to merge 15 commits intomainfrom
263-different-experiment-id-per-model-run
Open

Allow each model run to have a different experiment ID#332
NParsonsMO wants to merge 15 commits intomainfrom
263-different-experiment-id-per-model-run

Conversation

@NParsonsMO
Copy link
Collaborator

@NParsonsMO NParsonsMO commented Jan 13, 2026

Closes #263 .

PR creation checklist for the developer

  • Has <issue_number> above ☝️ been replaced with the issue number?
  • Has main been selected as the base branch?
  • Does the feature branch name follow the format <issue_number>_<short_description_of_feature>?
  • Does the text of the PR title exactly match with the text (not including the issue number) of the issue title?
  • Have appropriate reviewers been added to the PR (once it is ready for review)?
  • Has the PR been assigned to the developer(s)?
  • Have the same labels as on the issue (except for the good first issue label) been added to the PR?
  • Has the Climate Model Evaluation Workflow (CMEW) project been added to the PR?
  • Has the appropriate milestone been added to the PR?

Definition of Done for the developer

  • Does the change in this PR address the above issue / have all acceptance criteria been met?
  • Does the change in this PR follow the requirements in the wiki: Developer Guide (including copyrights)?
  • Have new tests related to the change been added?
  • Do all the GitHub workflow checks pass?
  • Do all the tests run locally and pass? (Note: the tests are not run by the GitHub workflow, see wiki: Run the tests locally)
  • Has the API documentation (e.g. docstrings in Python modules) related to the change been updated appropriately?
  • Has the user documentation (i.e. everything in the doc directory) related to the change been updated appropriately, including the Quick Start section?
  • Do the HTML pages render correctly? (See wiki: Build the documentation locally)

PR creation checklist for the reviewer

  • Has <issue_number> above ☝️ been replaced with the issue number?
  • Has main been selected as the base branch?
  • Does the feature branch name follow the format <issue_number>_<short_description_of_feature>?
  • Does the text of the PR title exactly match with the text (not including the issue number) of the issue title?
  • Have appropriate reviewers been added to the PR (once it is ready for review)?
  • Has the PR been assigned to the developer(s)?
  • Have the same labels as on the issue (except for the good first issue label) been added to the PR?
  • Has the Climate Model Evaluation Workflow (CMEW) project been added to the PR?
  • Has the appropriate milestone been added to the PR?

Definition of Done for the reviewer

  • Does the change in this PR address the above issue / have all acceptance criteria been met?
  • Does the change in this PR follow the requirements in the wiki: Developer Guide (including copyrights)?
  • Have new tests related to the change been added? N/A
  • Do all the GitHub workflow checks pass?
  • Do all the tests run locally and pass? (Note: the tests are not run by the GitHub workflow, see wiki: Run the tests locally)
  • Has the API documentation (e.g. docstrings in Python modules) related to the change been updated appropriately? N/A
  • Has the user documentation (i.e. everything in the doc directory) related to the change been updated appropriately, including the Quick Start section? N/A
  • Do the HTML pages render correctly? (See wiki: Build the documentation locally)

@NParsonsMO NParsonsMO linked an issue Jan 13, 2026 that may be closed by this pull request
@NParsonsMO NParsonsMO self-assigned this Jan 13, 2026
@NParsonsMO
Copy link
Collaborator Author

Commit 80ab7bb is not actually to do with this issue, I wrote SUITE_ID and REF_SUITE_ID into this section in PR #299 https://github.com/MetOffice/CMEW/pull/299/changes, but they were already inherited as part of MODEL_RUNS.

@NParsonsMO
Copy link
Collaborator Author

image

@NParsonsMO NParsonsMO changed the title 263 different experiment id per model run Allow each model run to have a different experiment ID Jan 13, 2026
@NParsonsMO NParsonsMO added configure Anything related to configuration recipe Anything related to ESMValTool labels Jan 13, 2026
@NParsonsMO NParsonsMO marked this pull request as ready for review January 13, 2026 16:43
@mo-nikosbaltas mo-nikosbaltas self-requested a review January 14, 2026 10:28
Copy link
Collaborator

@mo-nikosbaltas mo-nikosbaltas left a comment

Choose a reason for hiding this comment

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

All looks good. Run successful including tests.
However the text of the PR title does not match with the text of the issue.

@NParsonsMO
Copy link
Collaborator Author

All looks good. Run successful including tests. However the text of the PR title does not match with the text of the issue.

image image

I am not spotting the difference (admittedly pre coffee)...

@mo-nikosbaltas
Copy link
Collaborator

It was me being careless. It is all ok.

mo-nikosbaltas
mo-nikosbaltas previously approved these changes Jan 22, 2026
mo-nikosbaltas
mo-nikosbaltas previously approved these changes Jan 22, 2026
Copy link
Collaborator

@mo-nikosbaltas mo-nikosbaltas left a comment

Choose a reason for hiding this comment

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

It is all good.

Copy link
Member

@ehogan ehogan left a comment

Choose a reason for hiding this comment

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

Thanks @NParsonsMO! 🥳

NParsonsMO and others added 2 commits January 23, 2026 08:55
Co-authored-by: Emma Hogan <ehogan@users.noreply.github.com>
Co-authored-by: Emma Hogan <ehogan@users.noreply.github.com>
@NParsonsMO NParsonsMO requested a review from ehogan January 26, 2026 11:06
Copy link
Collaborator

@mo-nikosbaltas mo-nikosbaltas left a comment

Choose a reason for hiding this comment

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

Agreed with changes Emma suggested and use experiment_id. Run both unittest and test and both passed.

Copy link
Member

@ehogan ehogan left a comment

Choose a reason for hiding this comment

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

Thanks @NParsonsMO! 🥳

MODEL_ID="HadGEM3-GC5E-LL"
NUMBER_OF_YEARS=1
REF_CALENDAR="360_day"
REF_EXPERIMENT_ID="amip"
Copy link
Member

Choose a reason for hiding this comment

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

There's a monkeypatch.setenv("REF_EXPERIMENT_ID", "historical") line in CMEW/app/configure_for/bin/test_update_recipe_file.py. Should the REF_EXPERIMENT_ID here match? Should these values be the other way around? 🤔

Copy link
Collaborator Author

@NParsonsMO NParsonsMO Feb 2, 2026

Choose a reason for hiding this comment

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

Sorry, I didn't mean to press "resolve".

I don't know the answer. These are going to change all the time in real use? Before this change, they were both hardcoded to "amip".

I don't know what type of experiment either run actually was, does a test need to know this, or just that the file will reproduce whatever is set?

There's a comment in update_recipe_file.py here about the change to "amip" from "historical":
https://github.com/MetOffice/CMEW/pull/309/changes#diff-cebbcc20b1948a98773e8a17e02e75d49c69006ec5c379816bcf8fff469aa152

NParsonsMO and others added 2 commits February 2, 2026 09:21
Co-authored-by: Emma Hogan <ehogan@users.noreply.github.com>
Co-authored-by: Emma Hogan <ehogan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

configure Anything related to configuration recipe Anything related to ESMValTool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow each model run to have a different experiment ID

3 participants