tardis.io.logger.montecarlo_tracking module

tardis.io.logger.montecarlo_tracking.log_decorator(func)[source]

Decorator to log functions while in debug mode, i.e., when debug_montecarlo is True in the config. Works for @jit'd and `@njit’d functions, but with a significant speed penalty.

TODO: in nopython mode: do I need a context manager?

Input:

func : (function) function to be logged.

Output:

wrapper : (function) wrapper to the function being logged.