Running, e.g., an ACCESS-OM3 config that doesn't use the additional restarts functionality fails with:
Traceback (most recent call last):
File "/g/data/vk83/prerelease/apps/payu/dev/bin/payu-run", line 8, in <module>
sys.exit(runscript())
File "/g/data/vk83/prerelease/apps/payu/dev/lib/python3.9/site-packages/payu/subcommands/run_cmd.py", line 135, in runscript
expt.archive(force_prune_restarts=run_args.force_prune_restarts)
File "/g/data/vk83/prerelease/apps/payu/dev/lib/python3.9/site-packages/payu/experiment.py", line 755, in archive
model.archive()
File "/g/data/vk83/prerelease/apps/payu/dev/lib/python3.9/site-packages/payu/models/cesm_cmeps.py", line 243, in archive
for name in os.listdir(self.work_restart_path):
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/tm70/ds0092/access-om3/work/MOM6-CICE6/RESTART'
I guess empty directories get cleaned up at some point so we need to check whether the directory exists before trying to archive. I'll follow up with a PR.
Running, e.g., an ACCESS-OM3 config that doesn't use the additional restarts functionality fails with:
I guess empty directories get cleaned up at some point so we need to check whether the directory exists before trying to archive. I'll follow up with a PR.