Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Remove invalid dimension checking in axes_rgb. #7826
Conversation
codecov-io
commented
Jan 14, 2017
•
Current coverage is 62.10% (diff: 0.00%)@@ master #7826 diff @@
==========================================
Files 174 174
Lines 56052 56049 -3
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 34809 34809
+ Misses 21243 21240 -3
Partials 0 0
|
|
I am concerned that this patch makes it harder for the user to understand where exactly the error comes from. |
|
I agree with @NelleV This is one of the few places where we raise a non-inscrutable exception. This also replaces comparing equality of a few integers with copying all of the data an extra time. It is probably better to just fix the transposition. |
tacaswell
modified the milestone: 2.1 (next point release), 2.0.1 (next bug fix release)
Jan 15, 2017
|
|
|
I feel a bit ridiculous to have waste both of our times over this so I restored the check :) but at least I learnt a new word (copacetic)... |
tacaswell
changed the title from
Remove invalid dimension checking in axes_rgb. to [MRG+1] Remove invalid dimension checking in axes_rgb.
Jan 15, 2017
|
ah, I missed the sum at the bottom |
efiring
changed the title from
[MRG+1] Remove invalid dimension checking in axes_rgb. to Remove invalid dimension checking in axes_rgb.
Jan 15, 2017
efiring
merged commit b602713
into matplotlib:master
Jan 15, 2017
anntzer
deleted the
anntzer:invalid-rgbaxes-dimensions-check branch
Jan 15, 2017
anntzer
referenced
this pull request
Jan 16, 2017
Closed
Dimensions sanity check in axes_rgb swaps x and y of shape when checking, prevents use with non-square images. #7810
|
Backported to |
QuLogic
added a commit
that referenced
this pull request
Jan 30, 2017
|
|
efiring + QuLogic |
2da8a98
|
anntzer commentedJan 14, 2017
Just let
dstackerror out if dimensions don't match.See #7810.