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

Fix saving output variables with dtype=object #145

Merged

Conversation

bgailleton
Copy link
Contributor

@bgailleton bgailleton commented Nov 12, 2020

…able dtype is object or np.object. It works at runtime and the variable is successfully saved in the Dataset, but it fails at sabing to file Closes #144

…able dtype is object or np.object. It works at runtime and the variable is successfully saved in the Dataset, but it fails at sabing to file xarray-contrib#144
Copy link
Member

@benbovy benbovy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this @bgailleton !

I left two suggestions below.

Could you please add a unit test for this, as well as a new entry in the release notes (in docs)?

Py37 tests are failing but it is not related to the changes here.

xsimlab/stores.py Outdated Show resolved Hide resolved
xsimlab/stores.py Outdated Show resolved Hide resolved
@benbovy benbovy changed the title I added a test that provides a dummy object_codec to zarr if the vari… Fix saving ouput variables with dtype=object Nov 12, 2020
@benbovy benbovy changed the title Fix saving ouput variables with dtype=object Fix saving output variables with dtype=object Nov 12, 2020
@benbovy
Copy link
Member

benbovy commented Nov 12, 2020

LGTM, I pushed some commits to update an existing test for this.

Thanks again @bgailleton!

@benbovy benbovy merged commit d26c9e4 into xarray-contrib:master Nov 12, 2020
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

Successfully merging this pull request may close these issues.

Error when storing output arrays with object dtype
2 participants