logging

Utility functions for logging.

Functions

num2hrb

Convert big floating number to human readable string.

no_stdout

Silences stdout within the invoked context.

print_rank_0

Prints only on the master process.

silence_matched_warnings

Silences warnings that match a given pattern.

exception DeprecatedError

Bases: NotImplementedError

Error for deprecated functions.

no_stdout()

Silences stdout within the invoked context.

num2hrb(num, suffix='')

Convert big floating number to human readable string.

Parameters:

num (float) –

Return type:

str

print_rank_0(*args, **kwargs)

Prints only on the master process.

silence_matched_warnings(pattern=None)

Silences warnings that match a given pattern.

Parameters:

pattern (str) – The pattern to match against warning messages. Defaults to None.