File name resolution broken when inheriting config file in another directory
If I have for example:
my_model/my_model_dataset_config.yml
containing
scenario_params_path: scenario_params.csv
then when loading the file, scenario_params.csv
is supposed to be resolved to the absolute path /path/to/my_model/scenario_params.csv
.
This works fine.
However, if I have a different config file in a different directory like:
training/my_model_preprocessing_config.yml
and it contains
dataset:
inherit: ../my_model/my_model_dataset_config.yml
when the inherit it used it tries to resolve scenario_params.csv
to /path/to/training/scenario_params.csv
.
That's obviously wrong. It should resolve relative to the config file that actually contains the scenario_params_path
property, even if it was inherited from a different file in a different directory.
I thought this used to work as expected, but apparently it isn't...