mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-09 11:33:41 +08:00
Clean up color_dict definition
This commit is contained in:
@@ -17,7 +17,8 @@ DEFAULT_COLORS = ('red', 'blue', 'yellow', 'magenta', 'green',
|
||||
'indigo', 'darkorange', 'cyan', 'pink', 'yellowgreen')
|
||||
|
||||
|
||||
color_dict = rgb_colors.__dict__
|
||||
color_dict = dict((k, v) for k, v in rgb_colors.__dict__.iteritems()
|
||||
if isinstance(v, tuple))
|
||||
|
||||
|
||||
def _rgb_vector(color):
|
||||
|
||||
Reference in New Issue
Block a user