Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Hydra config: using another config as an input to multiple keys within a config

$
0
0

Suppose I have the following directory structure for my hydra configs:

config    |_config.yml    operations        |_subconfig.yml

subconfig.yml is

param_1: fooparam_2: bar

and config.yml is:

operations:    signals:        signal_a:            param_1: foo            param_2: bar        signal_b:            param_1: foo            param_2: bar    timestamps:        ts_1:            param_1: foo            param_2: bar

Instead of repeating param_1 and param_2 in my main config, I want to use subconfig to fill these parameters as a default. I know that I could do it if I used the defaults list and just replaced param_1 and param_2 at the top level of my main config. But I`m struggling to figure it out how to replace the values of subkeys within the main config by the values within the subconfig file. Is there any way to do this?


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>