deephyper.search.util
-
deephyper.search.util.
banner
(message, color='HEADER')[source]
Print a banner with message
- Parameters
message (str) – The message to be printed
color (str, optional) – The color of the banner in bcolors. Defaults to “HEADER”.
-
deephyper.search.util.
generic_loader
(target: str, attribute=None)[source]
Load attribute from target module
- Parameters
target (str or Object) – either path to python file, or dotted Python package name.
attribute (str) – name of the attribute to load from the target module.
- Raises
GenericLoaderError – Raised when the generic_loader function is failing.
- Returns
the loaded attribute.
- Return type
Object
-
deephyper.search.util.
load_attr
(str_full_module)[source]
- Parameters
str_full_module (-) – (str) correspond to {module_name}.{attr}
Return: the loaded attribute from a module.
-
deephyper.search.util.
load_from_script
(fname, attr)[source]