twodlearn.debug module

class twodlearn.debug.TracePrints[source]

Bases: object

Trace print statements

Use the with statement to enclose the function of interest

with TracePrints:
    run_your_function()
class twodlearn.debug.TracePrintsSysOut[source]

Bases: object

write(s)[source]
twodlearn.debug.debug_func(func)[source]
twodlearn.debug.get_logger(name)[source]
twodlearn.debug.stop_at_error(func)[source]

Decorator used to stop at error.

twodlearn.debug.stop_at_warning(func)[source]

Decorator used to stop at warnings.