-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove invalid dimension checking in axes_rgb. #7826
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
Remove invalid dimension checking in axes_rgb. #7826
Conversation
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. |
|
|
Just let `dstack` error out if dimensions don't match.
ab9610e
to
8e6d4c1
Compare
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)... |
ah, I missed the sum at the bottom 🐑 |
Backported to |
Remove invalid dimension checking in axes_rgb.
Just let
dstack
error out if dimensions don't match.See #7810.