earthkit.utils.decorators package

Module contents

Function decorators and wrappers for use in the downstream EarthKit packages.

ExperimentalWarning

Warning category for experimental API usage.

experimental([obj, msg, warn_runtime])

Mark a function as experimental.

thread_safe_cached_property(method)

A thread-safe cached property decorator.

format_handler([kwarg_types, convert_types])

Transform the inputs to a function to match the requirements.

dispatch(func[, match, xarray, fieldlist, ...])

Decorator to dispatch function calls based on input data types.

xarray_ufunc(func, *args, **kwargs)