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.<locals>.func'
Activity
max-sixty commentedon Jul 19, 2016
There was a similar issue in pandas; may be worth looking at what the solution there was
shoyer commentedon Jul 19, 2016
Possible cloudpickle or dill (which I know dask has used) can handle pickling them.
crusaderky commentedon Jul 30, 2016
cloudpickle seems to work. dill doesn't (similar message as pickle).