Skip to content
New issue

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

BUG: cannot trace.save() author model #52

Closed
eigenfoo opened this issue Jul 20, 2018 · 2 comments
Closed

BUG: cannot trace.save() author model #52

eigenfoo opened this issue Jul 20, 2018 · 2 comments

Comments

@eigenfoo
Copy link
Contributor

eigenfoo commented Jul 20, 2018

NotImplementedError: variable 'dim_0' is a MultiIndex, which cannot yet be serialized
to netCDF files (https://github.com/pydata/xarray/issues/1077). Use reset_index()
to convert MultiIndex levels into coordinate variables instead.

cc @aseyboldt

@eigenfoo
Copy link
Contributor Author

It looks like the simplest solution would be to reset_index before serializing the trace, and then set_index immediately after un-serializing.

This would bring the number of temporary solutions/hacks to 2, to circumvent bugs in xarray. One due to pydata/xarray#2299 and another due to pydata/xarray#1077

@aseyboldt does this sound good to you?

@aseyboldt
Copy link
Collaborator

Yes, that sounds good.
To be fair, the first one doesn't really affect us, that just made me waste 15 minutes trying to solve the issue we had with the multiindex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants