pastas.decorators.set_parameter#
- pastas.decorators.set_parameter(function: collections.abc.Callable) collections.abc.Callable#
Validate and set parameter values.
This decorator checks if the parameter name exists in the parameters DataFrame before calling the wrapped function.
- Parameters:
function (Callable) – The function to wrap.
- Returns:
The wrapped function with parameter validation.
- Return type:
Callable