payu-org / payu

A workflow management tool for numerical models on the NCI computing systems
Apache License 2.0
21 stars 27 forks source link

Staged cable improve resubmission and restart handling #537

Open Whyborn opened 1 week ago

Whyborn commented 1 week ago

Improvements to staged_cable driver

I made some improvements to the staged_cable driver to hopefully make it more easily understandable, and more easily shareable. Summary of changes:

Coming with this is the removal of a fair bit of now-dead code.

Edit: One thing I forgot to mention is the handling of potentially new namelists. I would like it to be possible for people adding new science (or perhaps cable configurations I don't know about yet) to be able to use the tool. Unfortunately, I can't know a priori which namelists will be required in these instances. To get around this, I could simply set

self.optional_config_files = glob.glob('*/nml')

rather than the predefined list of namelists, but it feels like a bit of an abuse of process. Thoughts?

pep8speaks commented 1 week ago

Hello @Whyborn! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2024-11-12 02:23:46 UTC
coveralls commented 1 week ago

Coverage Status

coverage: 58.775% (+0.4%) from 58.364% when pulling b69b26d331a49b40f7acd10ffd7976b2e3599da9 on staged-cable-improve-resubmission-and-restart-handling into 27aac372dba2752e1d58ab1d66db799e7891e103 on master.

aidanheerdegen commented 1 week ago

I wanted to add Claire to the reviewers, but she doesn't appear in the list of reviewers.

I've made a team for ACCESS-NRI and this is rectified