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

More pint fixes #1282

Merged
merged 5 commits into from
Jan 10, 2020
Merged

More pint fixes #1282

merged 5 commits into from
Jan 10, 2020

Conversation

dopplershift
Copy link
Member

Description Of Changes

  • Tweak/hack a few tests
  • Adjust a few image thresholds--just a few pixels changed
  • Adjust value in docstring example that changed due to Pint's constant value changes (broke doctests)
  • Change handling of unit-ed arrays with StationPlot.plot_parameter; we really should just be dropping units here explicitly anyways. With the Pint 0.10, they actually stay attached when we expected them to leave
  • Fixed an example's issue with masked arrays

Checklist

So with pint's advances, it turns out `item()` no longer strips units.
This is Unidata#330 come back for revenge. The right answer is to just drop
units when calling `plot_parameter`. We don't want them, and there's no
format code that will drop units; while one could be added, this
wouldn't work with floats in general.
With the new pint release, some test images are now showing 0 instead of
-0 (which is actually an improvement. If we just adjust some values in
the tests, we don't even need to deal with this.
Now prints 'degrees_Celisus' by default instead of degC. Hack around
this by just setting the label to 'degC' for now. Also slightly bump
image test thresholds for some couple-pixel changes that have cropped
up.
Value slightly changed with Pint 0.10 constant changes, and this was
causing doctests to fail.
Wreaking havoc with Pint 0.10. Just need to use a different construction
method.
@dopplershift dopplershift added Area: Docs Affects documentation Area: Examples Affects examples Area: Tests Affects tests Type: Maintenance Updates and clean ups (but not wrong) labels Jan 10, 2020
@dopplershift dopplershift added this to the 1.0 milestone Jan 10, 2020
@dopplershift dopplershift merged commit ce7b25f into Unidata:master Jan 10, 2020
@dopplershift dopplershift deleted the more-pint branch January 10, 2020 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Docs Affects documentation Area: Examples Affects examples Area: Tests Affects tests Type: Maintenance Updates and clean ups (but not wrong)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image tests failing with Pint 0.10
1 participant