Misc (macroeco.misc)

This module contains miscellaneous functions that support the functions of other modules of macroeco.

Support Functions

log_start_end(f) Decorator to log start and end of function
inherit_docstring_from(cls) This decorator modifies the decorated function’s docstring by replacing occurrences of ‘%(super)s’ with the docstring of the method of the same name from the class cls.
doc_sub(*sub) Decorator for performing substitutions in docstrings.
check_parameter_file(filename) Function does a rudimentary check whether the cols, splits and divs columns in the parameter files are formatted properly.