log_to_attrs#

movement.utils.logging.log_to_attrs(func)[source]#

Log the operation performed by the wrapped function.

This decorator appends log entries to the data’s log attribute. The wrapped function must accept an xarray.Dataset or xarray.DataArray as its first argument and return an object of the same type.