plasmapy.utils.decorators.validators

Various decorators to validate input/output arguments to functions.

Classes

ValidateQuantities([validations_on_return])

A decorator class to 'validate' -- control and convert -- the units and values of input and return arguments to a function or method.

Inheritance diagram of plasmapy.utils.decorators.validators.ValidateQuantities

Functions

validate_class_attributes([...])

A decorator responsible for raising errors if the expected arguments weren't provided during class instantiation.

validate_quantities([func, ...])

A decorator to 'validate' — control and convert — the units and values of input and return arguments to a function or method.