mi-prometheus icon indicating copy to clipboard operation
mi-prometheus copied to clipboard

Extract and add absolute path to nested config files

Open tkornuta-ibm opened this issue 6 years ago • 0 comments

Describe the bug Currently, all workers assume that they are executed from the mi-prometheus main directory. Along with setup.py we open the possibility to execute the mip-* workers from any directory. To Reproduce

tkornuta@tkornuta-MacBookPro:~/pytorch-env$ mip-onlinetrainer --c mi-prometheus/configs/maes_baselines/maes/maes_serial_recall.yaml Info: Parsing the mi-prometheus/configs/maes_baselines/maes/maes_serial_recall.yaml configuration file Info: Parsing the configs/maes_baselines/maes/default_maes.yaml configuration file Error: Configuration file configs/maes_baselines/maes/default_maes.yaml does not exist

Expected behavior Workers should search the other configs in relation to the first one.

Solution

Extract the absolute path to the main config, then navigate in relation to that one. The goal is to leave the paths in default_config sections as they are, i.e. starting from the configs/ directory.

tkornuta-ibm avatar Oct 23 '18 19:10 tkornuta-ibm