pastas.decorators.get_stressmodel#

pastas.decorators.get_stressmodel(function: collections.abc.Callable) collections.abc.Callable#

Validate and retrieve stressmodel by name.

This decorator checks if the stressmodel name exists before calling the wrapped function.

Parameters:

function (Callable) – The function to wrap.

Returns:

The wrapped function with stressmodel validation.

Return type:

Callable