-
Notifications
You must be signed in to change notification settings - Fork 600
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
Better strategy to compare two color arrays #1884
Conversation
Better strategy to compare two 3-dimensional arrays, such as `RGB` color list `[array([0.29803922, 0.44705882, 0.69019608]), array([0.86666667, 0.51764706, 0.32156863]), array([0.33333333, 0.65882353, 0.40784314]), array([0.76862745, 0.30588235, 0.32156863])]`.
The logic should be `np.any()` instead of `np.all()`.
Codecov Report
@@ Coverage Diff @@
## master #1884 +/- ##
=======================================
Coverage 71.22% 71.22%
=======================================
Files 92 92
Lines 11181 11181
=======================================
Hits 7964 7964
Misses 3217 3217
|
Can you tell us a bit about your use case? In general, we mostly assume colors are a list of hex values, and would suspect other things may break if you arrays here. |
I don't know why sometimes it's broken when I use some specific column to set the parameter of |
There was an issue where values were being set as rgb values unintentionally which should be fixed by #1886. Can you give an example of how this was causing problems? What would cause you to hit errors here? |
I tried debug by myself and this is what I found at the break point: when the color represented by RGB values, such as It may also cause by the default setting of |
Once again, I got this error, even if I didn't import
|
It seems that this problem has been corrected in version 1.8.0. So I close it. |
Thanks for the update! Glad to hear it works now. |
When
RGB
color represented by 3D arrays, we cannot compare them aslist
vslist
.