miscDecos

Miscellaneous decorator functions used by msAI.

msAI.miscDecos.logger = <Logger msAI.miscDecos (DEBUG)>

Module logger.

msAI.miscDecos.log_timer(func)[source]

Decorator to log the runtime and dataframe shape (if present) of the decorated function.

If the passed function’s instance object has a dataframe attribute (df), its shape will be included. The wrapped function’s own module logger will be used to create the log.