utilities
General purpose utilities.
- compute_relative_error(current, target)[source]
Computes the absolute relative error between two values
- docstring_parameters(*args, **kwargs)[source]
Decorator that allows the use of variables in docstrings. See: https://stackoverflow.com/questions/10307696/
This decorator modifies the docstring such that it ignores curly braces outside the “Parameters” section.
- isiter(obj)[source]
Returns True if the passed argument is an iterable, False otherwise. Note that strings are iterable and will therefore return True.