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

Convert all data variables in a Dataset to the same unit. #63

Merged
merged 5 commits into from Feb 15, 2021

Conversation

mikapfl
Copy link
Contributor

@mikapfl mikapfl commented Feb 12, 2021

Add the ability to convert all data variables in a Dataset to the same unit by giving a single unit-like instead of a dictionary.

Closes: #45

Copy link
Collaborator

@keewis keewis 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 the PR, @mikapfl, this looks mostly good to me.

Could you also update the changelog? We currently don't credit the authors, but since you're the first community contributor it might be good to start doing that. The syntax might be something like xarray's:

- description (:issue:`nn`, ..., :pull:`nn`).
  By `Contributor <https://github.com/contributor>`_.

pint_xarray/accessors.py Show resolved Hide resolved
pint_xarray/tests/test_accessors.py Outdated Show resolved Hide resolved
pint_xarray/accessors.py Outdated Show resolved Hide resolved
mikapfl and others added 4 commits February 15, 2021 09:27
Co-authored-by: keewis <keewis@users.noreply.github.com>
Co-authored-by: keewis <keewis@users.noreply.github.com>
@mikapfl
Copy link
Contributor Author

mikapfl commented Feb 15, 2021

Thanks for the review! I have incorporated your suggestions and added a changelog entry.

@keewis
Copy link
Collaborator

keewis commented Feb 15, 2021

Great. Thanks again, @mikapfl.

@keewis keewis merged commit 00ae00c into xarray-contrib:master Feb 15, 2021
@mikapfl mikapfl deleted the 45-ds-convert branch February 15, 2021 13:55
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.

convert all arrays in a dataset into the same unit
2 participants