ncar-xdev/xpersist

Re-implement the `@xpersist` decorator

Opened this issue · 0 comments

Something along the lines of

  import xarray as xr
  import xpersist as xp
  import numpy as np

  In [1]: @xp.persist(cache=..., key=...)
      ...: def func(scaleby):
      ...:     return xr.Dataset({'x': xr.DataArray(np.ones((50,))*scaleby)})