Replies: 2 comments
-
TLDR: Yes,
I noticed that your example above uses yaml files and a hydra-like defaults list. Note that according to the yaml spec, yaml mappings (i.e. "yaml dicts") are technically unordered. OmegaConf and Hydra use the |
Beta Was this translation helpful? Give feedback.
-
Thanks @Jasha10. It does seem, based on a number of discussions, that I've included the link(s) below for reference: I would note that although loading the yaml preserves order, |
Beta Was this translation helpful? Give feedback.
-
I am wondering if
oc.dict.values
preserves order.Given the following example:
pets.yaml
and another yaml file which uses
pets.yaml
:will
oc.dict.values
preserve the order of the objects inpets.yaml
?ie. the order will always be the values of [zebra,cat] and never [cat, zebra]
Beta Was this translation helpful? Give feedback.
All reactions