decorators
Overview
The decorators module contains decorator functions to validate inputs and enhance functionality for processing wave and cube values.
Functions
- wizard._utils.decorators.check_load_dc(func)[source]
Check if the loading function is correctly defined.
- Parameters:
func – The loading function to be decorated.
- Returns:
The wrapped function.
- Return type:
method
- wizard._utils.decorators.check_path(func)[source]
Check if the provided data path is valid.
- Parameters:
func – The function to be decorated.
- Returns:
The wrapped function.
- wizard._utils.decorators.add_method(cls)[source]
Decorator to add a method to a class.
- Parameters:
cls – The class to which the method will be added.
- Returns:
The decorator function.
Source: Michael Garod @ Medium
- wizard._utils.decorators.track_execution_time(func)[source]
Decorator to track the execution time of a function in milliseconds.
- Parameters:
func – The function to be decorated.
- Returns:
The wrapped function that prints execution time.