omegaconf_ops
omegaconf_ops
¶
OmegaConf utility operations.
resolve_dict_keys
¶
Resolve any OmegaConf interpolations in dictionary keys recursively.
OmegaConf doesn't resolve interpolations in dict keys by default. This function resolves keys like '${cameras:AGENTVIEW}' to 'agentview_rgb'.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
d
|
Mapping[Any, Any]
|
Dictionary with potentially unresolved interpolation keys. |
required |
Returns:
| Type | Description |
|---|---|
dict[Any, Any]
|
New dictionary with resolved keys. |
Source code in src/versatil/common/omegaconf_ops.py
make_config_yaml_safe
¶
Convert resolved config values unsupported by OmegaConf into YAML-safe values.