Closed v-iashin closed 1 year ago
Hey,
in yaml flow style (using [ ]
and { }
instead of indentation) the curly braces indicate a dictionary, so yaml can't parse it properly.
To use interpolations in a flow sequence, you have to indicate to a string with quoting the interpolation, so the following (edited) example will work:
cfg = OmegaConf.create('''
a: 1
b: ["${a}", 2]
''')
OmegaConf.resolve(cfg)
print(cfg)
Hope that helps!
Excellent thanks!
Is your feature request related to a problem? Please describe.
Describe the solution you'd like I'd like the second example to work.
Describe alternatives you've considered None
Additional context None