Currently, I have this configuration file which I'm using as an input to hydra/omegaconf
db:
range:
- -10
- 10
Since the values in the range field are related by simple algebra, I'm looking for a way to encode this into the configuration file. Conceptually, I would like to have something like this:
db:
db_val: 10
range:
- (-1) * ${..db_val}
- ${..db_val}
But this not seems to work.
Arithmetic operations in the OmegaConf configs are not currently supported. There is feature request to support it though.