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 the units and dimensionality properties #31

Merged
merged 12 commits into from Oct 4, 2020

Conversation

keewis
Copy link
Collaborator

@keewis keewis commented Aug 31, 2020

DataArray.pint.units.__set__ was broken, it would silently discard the requested units. Also, DataArray.pint.units.__get__ and DataArray.pint.dimensionality.__get__ would fail for non-quantities.

This fixes those issues, and also adds docstrings to both properties.

@keewis keewis mentioned this pull request Aug 31, 2020
7 tasks
@keewis keewis requested a review from jthielen September 4, 2020 14:54
@keewis keewis merged commit efc4772 into xarray-contrib:master Oct 4, 2020
@keewis keewis deleted the fix-units-setattr branch October 4, 2020 15:06
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.

None yet

1 participant