Skip to content

Update counts for prognostic and tracer variables#32

Merged
blimlim merged 4 commits into
mainfrom
31-set-prognostics-tracers
Jun 25, 2026
Merged

Update counts for prognostic and tracer variables#32
blimlim merged 4 commits into
mainfrom
31-set-prognostics-tracers

Conversation

@blimlim

@blimlim blimlim commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Closes #31

This PR updates the um_fields_subset.py script, so that it resets the count of prognostic fields and tracer variables recorded in the file headers after the subsetting is performed. The original version of the script performed this step, and it is required as the UM performs some consistency checks with these at the start of a simulation.

Any feedback or suggested changes are welcome!

@blimlim blimlim requested review from MartinDix and atteggiani June 22, 2026 01:45
Comment thread src/umfile_utils/um_fields_subset.py
Comment thread src/umfile_utils/um_fields_subset.py
atteggiani
atteggiani previously approved these changes Jun 22, 2026

@atteggiani atteggiani 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.

Thank you @blimlim!

The updates look good to me. Tests look great!

Comment thread src/umfile_utils/um_fields_subset.py Outdated

@MartinDix MartinDix 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.

Looks good

@blimlim

blimlim commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @MartinDix and @atteggiani for your reviews! I'll merge this in now

@blimlim blimlim merged commit e02b84c into main Jun 25, 2026
5 checks passed
@blimlim blimlim deleted the 31-set-prognostics-tracers branch June 25, 2026 23:33
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.

um_fields_subset.py: Update counts of prognostic and tracer variables after subsetting

3 participants