cyto_dl.utils.rich_utils module#

cyto_dl.utils.rich_utils.enforce_tags(cfg: DictConfig, save_to_file: bool = False) None[source]#

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

cyto_dl.utils.rich_utils.print_config_tree(cfg: DictConfig, print_order: Sequence[str] = ('data', 'model', 'callbacks', 'logger', 'trainer', 'paths', 'extras'), resolve: bool = False, save_to_file: bool = False) None[source]#

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

Args:

cfg (DictConfig): Configuration composed by Hydra. print_order (Sequence[str], optional): Determines in what order config components are printed. resolve (bool, optional): Whether to resolve reference fields of DictConfig. save_to_file (bool, optional): Whether to export config to the hydra output folder.