booldog.utils.decorators

See: https://realpython.com/primer-on-python-decorators/

Functions

timer(func)

Print the runtime of the decorated function

debug(func)

Print the function signature and return value

silence_stdout(func)

Silence the standard output of the decorated function.

validate_node_argument(func)

Decorator to validate node arguments for Boolean network methods.

Module Contents

booldog.utils.decorators.timer(func)

Print the runtime of the decorated function

booldog.utils.decorators.debug(func)

Print the function signature and return value

booldog.utils.decorators.silence_stdout(func)

Silence the standard output of the decorated function.

booldog.utils.decorators.validate_node_argument(func)

Decorator to validate node arguments for Boolean network methods.