omegaconfutils
omegaconfutils ¶
Module for all Omegaconf utils
Classes¶
StringSepResolver ¶
OmegaConf resolver which extracts values from a string using the seperator
Parameters:
-
seperator
(str
, default:','
) –Used to split the input str
-
cast_type
–Optional; If given it is used to convert the value to a given type
Source code in niceml/utilities/omegaconfutils.py
Functions¶
__call__ ¶
Extracts a value from 'incoming_str' by index Args: incoming_str: str with target information (e.g. '124,264') index: target index (e.g. 1 -> 264)
Source code in niceml/utilities/omegaconfutils.py
TrueDivResolver ¶
OmegaConf resolver which divides two values and returns an int
TypeCastResolver ¶
Functions¶
register_niceml_resolvers ¶
register all niceml OmegaConf resolvers