Hi all, is there a way to use runtime parameters w...
# questions
l
Hi all, is there a way to use runtime parameters with
OmegaConfigLoader
to do templating in the catalog? My understanding is that runtime parameters are added to the
KedroContext
but by default, the config pattern that
OmegaConfigLoader
searches for are files with the "catalog" prefix or in a directory called "catalog". Would it be possible to override the default behavior to pull values from the context class instead?
d
So we typically don’t encourage this because it makes reproducibility hard
but it’s possible to introduce a hook that achieves this
l
Would this be a before_catalog_created hook? And would the runtime_params field in
OmegaConfigLoader
help here? For context I'm just trying to change the filepaths that the data gets saved to or loaded from and not the name of the catalog entry itself.
Admittedly I'm not using Kedro as intended but it solves so many other problems for me that I'm hoping to still keep with it
d
There will be examples of this in GitHub Issues - but I’m not sure we’ve seen this done yet with the new OmegaConf loader
👍 1