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

Add percent sign and UDUNITS exponent syntax support via Pint's new preprocessor option #1281

Merged
merged 1 commit into from
Jan 10, 2020
Merged

Add percent sign and UDUNITS exponent syntax support via Pint's new preprocessor option #1281

merged 1 commit into from
Jan 10, 2020

Conversation

jthielen
Copy link
Collaborator

@jthielen jthielen commented Jan 9, 2020

Description Of Changes

Now that Pint v0.10 has been released, the string preprocessor option in hgrecco/pint#911 is available. So, let's use it as discussed in #1134.

Checklist

@jthielen jthielen requested a review from dopplershift as a code owner January 9, 2020 16:16
@dopplershift dopplershift added Area: Units Pertains to unit information Type: Enhancement Enhancement to existing functionality labels Jan 9, 2020
@dopplershift dopplershift added this to the 1.0 milestone Jan 9, 2020
Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

Just minor lint to fix to make CI happy and this can get merged.

tests/units/test_units.py Outdated Show resolved Hide resolved
@dopplershift
Copy link
Member

Awesome, now at some point we can remove from all examples/training materials where we rewrite the relative humidity units!

@dopplershift dopplershift merged commit 34fab83 into Unidata:master Jan 10, 2020
@jthielen jthielen mentioned this pull request Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Units Pertains to unit information Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse CF/UDUNITS-style powers of units
2 participants