omry / omegaconf

Flexible Python configuration system. The last one you will ever need.
BSD 3-Clause "New" or "Revised" License
1.95k stars 107 forks source link

Convert from OrderedDict? #1156

Open jprawiharjo opened 7 months ago

jprawiharjo commented 7 months ago

Discussed in https://github.com/omry/omegaconf/discussions/1155

Originally posted by **jprawiharjo** February 22, 2024 I have a nested dict that contains `OrderedDict`. How do I convert this to omegaconf? Both `save` and `create` complain: `omegaconf.errors.UnsupportedValueType: Value 'OrderedDict' is not a supported primitive type`
odelalleau commented 7 months ago

Posted a workaround in https://github.com/omry/omegaconf/discussions/1155#discussioncomment-8560712 (but I agree it'd be good to just support any dict subclass).