Skip to content

Pickle xarray.ufuncs #901

Closed
Closed

Description

@crusaderky

It's currently impossible to pickle xarray.ufuncs.

import xarray.ufuncs, pickle
pickle.dumps(xarray.ufuncs.maximum)

AttributeError: Can't pickle local object '_create_op..func'

Activity

  1. max-sixty commented on Jul 19, 2016

    @max-sixty
    Collaborator

    There was a similar issue in pandas; may be worth looking at what the solution there was

  2. shoyer commented on Jul 19, 2016

    @shoyer
    Member

    Possible cloudpickle or dill (which I know dask has used) can handle pickling them.

  3. crusaderky commented on Jul 30, 2016

    @crusaderky
    ContributorAuthor

    cloudpickle seems to work. dill doesn't (similar message as pickle).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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