Skip to content

xlm.utils.rich_utils

print_config_tree(cfg, print_order=[], resolve=True, save_to_file=False)

Prints content of DictConfig using Rich library and its tree structure.

Parameters:

Name Type Description Default
cfg DictConfig

Configuration composed by Hydra.

required
print_order Sequence[str]

Determines what top level fields to print and in what order.

[]
resolve bool

Whether to resolve reference fields of DictConfig.

True
save_to_file bool

Whether to export config to the hydra output folder.

False

enforce_tags(cfg, save_to_file=False)

Prompts user to input tags from command line if no tags are provided in config.