FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix logic error in ScalarMappable.to_rgba by timhoffm · Pull Request #11002 · matplotlib/matplotlib · GitHub

Repository navigation

Fix logic error in ScalarMappable.to_rgba - #11002

Merged
efiring merged 1 commit into
matplotlib:masterfrom
timhoffm:fix-to_rgba-logic-error
Apr 9, 2018
Merged

efiring merged 1 commit into
matplotlib:masterfrom
timhoffm:fix-to_rgba-logic-error

Conversation

timhoffm commented Apr 8, 2018

Copy link
Copy Markdown
Member

PR Summary

This fixes the logic error described in #10890.

tacaswell added this to the v2.2.3 milestone Apr 9, 2018

Copy link
Copy Markdown
Member

I think this is a candidate for backport because it fixes a un-workaroundable bug in 2.2.2. I am not 100% on that, if someone else agrees merge away!

jklymak commented Apr 9, 2018 •
edited
Loading

Copy link
Copy Markdown
Member

I actually am 98.5% sure its not a followed code path because of the new clipping for imshow (#10220). 0% codecov isn't very good ;-)

(i.e. max(x)>1 is always False)

Copy link
Copy Markdown
Member

This is (for better or worse) a public function, I think the clipping happens when we set the data so using the 'standard' path this won't be hit, but using im.to_rgba(my_data) can still hit it.

jklymak commented Apr 9, 2018

Copy link
Copy Markdown
Member

Ah, fair enough.

OTOH, should it get a test if its public, including one to test if this error is properly called? But happy to see it merged if thats gilding the lily...

efiring commented Apr 9, 2018

Copy link
Copy Markdown
Member

This is the sort of bugfix that I think does not warrant a test.

efiring merged commit 3f763a6 into matplotlib:master Apr 9, 2018
timhoffm deleted the fix-to_rgba-logic-error branch April 9, 2018 21:51
QuLogic added a commit that referenced this pull request Apr 10, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL