-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Colors tests #539
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
Colors tests #539
Conversation
- rgb string, hex string or tuple | ||
|
||
""" | ||
from numbers import Number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐄 imports go at the top of the module.
…surf_plot color in 'data'
'width': 800 | ||
} | ||
'data': [{'facecolor': np.array( | ||
[b'rgb(145.0, 96.0, 143.0)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kully remove the b
's from here and the dtype='|S23'
. You're just being overly-strict in this test. Python 2 and 3 treat str
differently and will create a byte
or unicode
string, respectively.
💃 ! |
@theengineear
All tests are passing locally. The plan is to slowly replace the code in
tools
by the methods incolors
. A renaming of some of the preexisting methods incolors.py
will also be in order, but only after the code intools
is replaced first.