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

Adjust for pint 0.18 #35

Merged
merged 2 commits into from
Nov 12, 2021
Merged

Adjust for pint 0.18 #35

merged 2 commits into from
Nov 12, 2021

Conversation

khaeru
Copy link
Contributor

@khaeru khaeru commented Nov 11, 2021

  • One-line change to adjust to changes in pint.formatting.format_units() from pint 0.17 to 0.18.
  • Matrix the GitHub Actions workflow to test these versions of pint, plus the latest version.

Supersedes #32
Closes #31

pint.formatting.format_unit() changed slightly between pint 0.17 and
0.18; see hgrecco/pint@8c719483, part of hgrecco/pint#1371.

- Discard the "~" format modifier once it has been checked.
- Discard any leading ":".
- Adjust docstring.
@khaeru khaeru self-assigned this Nov 11, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #35 (2224ff0) into main (7e69589) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #35   +/-   ##
=======================================
  Coverage   73.10%   73.10%           
=======================================
  Files           4        4           
  Lines         145      145           
=======================================
  Hits          106      106           
  Misses         39       39           
Impacted Files Coverage Δ
iam_units/__init__.py 87.80% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e69589...2224ff0. Read the comment docs.

@khaeru
Copy link
Contributor Author

khaeru commented Nov 11, 2021

@phackstock if this satisfies, let's close #32.

Copy link
Member

@danielhuppmann danielhuppmann left a comment

Choose a reason for hiding this comment

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

Nice, thanks @khaeru!

@khaeru khaeru merged commit 41664ee into main Nov 12, 2021
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.

"Unknown conversion specified" in test suite with pint 0.18
3 participants