lidar_prod.commons

lidar_prod.commons.commons module

lidar_prod.commons.commons.eval_time(function: Callable)[source]

decorator to log the duration of the decorated method

lidar_prod.commons.commons.extras(config: DictConfig)[source]
lidar_prod.commons.commons.ignore_warnings()[source]
lidar_prod.commons.commons.print_config(config: DictConfig, resolve: bool = True, cfg_print_path: str = 'config_tree.txt') None[source]

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

Parameters:
  • config (DictConfig) – Configuration composed by Hydra.

  • resolve (bool, optional) – Whether to resolve reference fields of DictConfig.

  • cfg_print_path (str, optional) – where to save the printed config.