payu-org / payu

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

Small fix to support run counter > 999 #372

Closed aidanheerdegen closed 11 months ago

aidanheerdegen commented 11 months ago

In a recent PR (https://github.com/payu-org/payu/pull/366) added a routine for finding restart and output directories:

https://github.com/payu-org/payu/blob/master/payu/experiment.py#L206

Unfortunately this doesn't support run counter numbers > 999, which occurs and is supported ... imperfectly:

https://github.com/payu-org/payu/issues/232

I didn't notice this when I reviewed, apologies.

It is an easy fix: just make the regex support any number of digits after the output_type string.