-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Interpolation / Expansions #9196
Comments
+1 |
@m-gris You are using the hydra integration, right? Does it not solve your use case, or you just want to simplify by not needing hydra? |
@dberenbaum Here is a silly toy example that should suffice in illustrating what I have in mind: Let's say that in hydra_test:
dir: 'raw'
file: 'items.csv'
path: ${hydra-test.dir}/${hydra_test.file} The But if, in stages:
hydra_test:
cmd: echo ${hydra_test.path} It results in the following error:
It would actually be really nice if dvc could interpret / evaluate those. :) |
This should be also working and the params.yaml should contain the interpolated value. |
It now works like a charm with Hydra! |
It would be really nice to have the possibility to nest string interpolations / variables expansions, ex. interpolating in
dvc.yaml
a field ofparams.yaml
that is itself an interpolation of another field...For example:
In
params.yaml
and then
dvc.yaml
This would really help in avoiding cumbersome & "error prone" hardcoding.
Many thanks in advance
Regards
M
The text was updated successfully, but these errors were encountered: