This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Create nested instead of flat dictionaries with OmegaConfigLoader #4077
Labels
Issue: Feature Request
New feature or improvement to existing feature
Description
I am using
.
dot separated namespacing in my parameters files. I supposeOmegaConfigLoader
creates the flat dictionary instead of creating the nested namespace based dictionary. Example:Accessing namespace params becomes a bit difficult when you have a pipeline, sub-pipeline structure:
Parameters:
Accessing the
params:pipeline1
is impossible with current OmegaConfigLoader implementation. I can't even use the following structure in kedro because then I get an error (probably that the param -params:pipeline1
already exists):OmegaConf by default expects a nested dictionary based on namespace but Kedro provides it a flattened dictionary in the above case. A simple conversion from flat -> nested dictionary would do the job.
Context
With this change we:
.
separated namespace params as well.Possible Implementation
A simple conversion from flat -> nested dictionary while doing
OmegaConf.create()
inOmegaConfigLoader
would do the job.Link to discussion: https://kedro-org.slack.com/archives/C03RKP2LW64/p1723193517960259
Linked issue on Omegaconf: omry/omegaconf#1188 (comment)
The text was updated successfully, but these errors were encountered: