We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import cPickle as pickle import xray import numpy as np import pandas as pd foo_values = np.random.RandomState(0).rand(3,4) times = pd.date_range('2001-02-03', periods=3) ds = xray.Dataset({'time': ('time', times), 'foo': (['time', 'space'], foo_values)}) with open('mypickle.pkl', 'w') as f: pickle.dump(ds, f) with open('mypickle.pkl') as f: myds = pickle.load(f) myds
This code results in: <repr(<xray.dataset.Dataset at 0x7f95a3290d90>) failed: AttributeError: mapping>
<repr(<xray.dataset.Dataset at 0x7f95a3290d90>) failed: AttributeError: mapping>
The text was updated successfully, but these errors were encountered:
At least temporarily you might consider this:
myds = xray.open_dataset(ds.dumps())
Sorry, something went wrong.
Fix pickle for Dataset objects
306c6d8
Fixes pydata#167 Related: pydata#166 (though I'm not sure why that didn't work)
Update README.md (pydata#167)
accdd06
Fix link to anytree issue. Co-authored-by: Tom Nicholas <[email protected]>
shoyer
Successfully merging a pull request may close this issue.
This code results in:
<repr(<xray.dataset.Dataset at 0x7f95a3290d90>) failed: AttributeError: mapping>
The text was updated successfully, but these errors were encountered: