pyabsa.utils.check_utils
Submodules
Package Contents
Functions
|
Timeout decorator, parameter in seconds. |
|
Custom print function that adds a timestamp and the pyabsa version before the printed message. |
|
|
|
|
|
Check if the local dataset version is the same as the remote dataset version. |
|
Timeout decorator, parameter in seconds. |
|
Custom print function that adds a timestamp and the pyabsa version before the printed message. |
|
|
|
|
- pyabsa.utils.check_utils.fprint(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)[source]
Custom print function that adds a timestamp and the pyabsa version before the printed message.
- Args:
*objects: Any number of objects to be printed sep (str, optional): Separator between objects. Defaults to “ “. end (str, optional): Ending character after all objects are printed. Defaults to “
- “.
file (io.TextIOWrapper, optional): Text file to write printed output to. Defaults to sys.stdout. flush (bool, optional): Whether to flush output buffer after printing. Defaults to False.
- pyabsa.utils.check_utils.check_datasets_version(**kwargs)[source]
Check if the local dataset version is the same as the remote dataset version.
- pyabsa.utils.check_utils.fprint(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)[source]
Custom print function that adds a timestamp and the pyabsa version before the printed message.
- Args:
*objects: Any number of objects to be printed sep (str, optional): Separator between objects. Defaults to “ “. end (str, optional): Ending character after all objects are printed. Defaults to “
- “.
file (io.TextIOWrapper, optional): Text file to write printed output to. Defaults to sys.stdout. flush (bool, optional): Whether to flush output buffer after printing. Defaults to False.