Skip to content

CDDSO-631 Fix for archiving when sub-experiment id is not none#434

Merged
Matthew Mizielinski (matthew-mizielinski) merged 2 commits into
v3.1_releasefrom
CDDSO-631_sub-expt_archive_fix
Mar 17, 2025
Merged

CDDSO-631 Fix for archiving when sub-experiment id is not none#434
Matthew Mizielinski (matthew-mizielinski) merged 2 commits into
v3.1_releasefrom
CDDSO-631_sub-expt_archive_fix

Conversation

@matthew-mizielinski
Copy link
Copy Markdown
Collaborator

Between v2.5.8 and v3.1.0 something has changed in the code that constructs the member id for use in the archiving, leading to a sequence of directories such as

.../CMIP6/DCPP/MOHC/HadGEM3-GC31-MM/dcppB-forecast/s2024-r1i1p1f3
.../CMIP6/DCPP/MOHC/HadGEM3-GC31-MM/dcppB-forecast/s2024-s2024-r1i1p1f3
.../CMIP6/DCPP/MOHC/HadGEM3-GC31-MM/dcppB-forecast/s2024-s2024-s2024-r1i1p1f3
...
.../CMIP6/DCPP/MOHC/HadGEM3-GC31-MM/dcppB-forecast/s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-s2024-r1i1p1f3

This is down to the update_memberid_if_needed() function in cdds.archive.mass being repeatedly applied and not checking if the member id had already been constructed correctly.

Change includes fix plus some tests.

Copy link
Copy Markdown
Collaborator

@mo-kerstinschmatzer mo-kerstinschmatzer left a comment

Choose a reason for hiding this comment

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

Lgtm to me. Tests passed

@matthew-mizielinski
Copy link
Copy Markdown
Collaborator Author

merged into main in 7b318a3

@matthew-mizielinski Matthew Mizielinski (matthew-mizielinski) deleted the CDDSO-631_sub-expt_archive_fix branch March 17, 2025 15:18
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