Skip to content

Re-implement the @xpersist decorator #61

@andersy005

Description

@andersy005

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)})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions