hyperspy.decorators module

hyperspy.decorators.interactive_range_selector(f)
hyperspy.decorators.lazify(func, **kwargs)
hyperspy.decorators.lazifyTestClass(*args, **kwargs)
hyperspy.decorators.simple_decorator(decorator)

This decorator can be used to turn simple functions into well-behaved decorators, so long as the decorators are fairly simple. If a decorator expects a function and returns a function (no descriptors), and if it doesn’t modify function attributes or docstring, then it is eligible to use this. Simply apply @simple_decorator to your decorator and it will automatically preserve the docstring and function attributes of functions to which it is applied.

This decorator was taken from: http://wiki.python.org/moin/PythonDecoratorLibrary