Artur Dobrogowski
06/23/2023, 1:19 PM${oc.env:SOME_VAR}
, but how to use it to interpolate with parameters defined in params.yml
?
let's say I have param some_var=42
and I want to make it fall back to it when there is no env. Is this correct? ${oc.env:SOME_VAR, ${some_var}}
?marrrcin
06/23/2023, 1:59 PMparams.yml
cannot be used to interpolateArtur Dobrogowski
06/23/2023, 2:00 PMglobals
then?marrrcin
06/23/2023, 2:03 PMglobals
were TemplatedConfigLoader
-specific.
See: https://github.com/kedro-org/kedro/issues/2407
and https://github.com/kedro-org/kedro/issues/2175Nok Lam Chan
06/23/2023, 2:46 PMoc:env
is only enable for credentials. This is because we don’t want user to abuse environment variable for params. You can still do it after https://github.com/kedro-org/kedro/issues/2622global
is still an open ticket
https://github.com/kedro-org/kedro/issues/2175Artur Dobrogowski
06/23/2023, 2:47 PMNok Lam Chan
06/23/2023, 2:50 PMlet’s say I have paramCan you elaborate what are you trying to specifically? Often you may want to use theand I want to make it fall back to it when there is no env. Is this correct?some_var=42
base
local
pattern for this purpose rather than injecting environment variable.Artur Dobrogowski
06/24/2023, 10:11 AMNok Lam Chan
06/26/2023, 9:13 AMAnkita Katiyar
06/26/2023, 9:27 AMoc.env
from your settings.py
and do it like this - ${oc.env:SOME_VAR, ${some_var}}
Artur Dobrogowski
06/26/2023, 9:27 AM