payu-org / payu

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

Cannot specify laboratory location without hardcoding path #247

Open aidanheerdegen opened 4 years ago

aidanheerdegen commented 4 years ago

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

https://github.com/payu-org/payu/blob/73ba06b47ed25b2801ebcd2eb9d00c3ebc79b72b/payu/laboratory.py#L77

to check for local paths (starting with ./?) as well as absolute paths.

aidanheerdegen commented 2 years ago

ping @micaeljtoliveira (tokens/variables in paths)