It is sometimes desirable to have the laboratory in the same directory as the configuration, making a self-contained experiment for testing, creating an archive tar or conveniently move from one location to another.
Currently payu requires a full path in the laboratory configuration option. This defeats the goal of a relocatable experiment.
One possible solution would be for payu to support some limited path variable expansion in config.yaml.
For example, to define a local laboratory in the control directory:
laboratory: $control_dir/lab
A less drastic solution would be to alter the logic here
It is sometimes desirable to have the laboratory in the same directory as the configuration, making a self-contained experiment for testing, creating an archive
tar
or conveniently move from one location to another.Currently
payu
requires a full path in thelaboratory
configuration option. This defeats the goal of a relocatable experiment.One possible solution would be for
payu
to support some limited path variable expansion inconfig.yaml
.For example, to define a local laboratory in the control directory:
A less drastic solution would be to alter the logic here
https://github.com/payu-org/payu/blob/73ba06b47ed25b2801ebcd2eb9d00c3ebc79b72b/payu/laboratory.py#L77
to check for local paths (starting with
./
?) as well as absolute paths.