pastas.decorators.njit#
- pastas.decorators.njit(function: collections.abc.Callable | None = None, **kwargs) collections.abc.Callable#
Apply numba’s njit to a function if numba is available.
- Parameters:
function (callable, optional) – The function to decorate.
**kwargs – Additional keyword arguments passed to numba.njit.
- Returns:
The decorated function, or the original function if numba is not available.
- Return type:
callable