From 7c4b99031eac6e037beedf5c0e72154f2a820ab5 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Wed, 29 Jul 2020 09:56:11 -0700 Subject: [PATCH] removed some prints, and fixed a type error for py2 --- py_gd/colors.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/py_gd/colors.py b/py_gd/colors.py index 82664ac..5ae99e6 100644 --- a/py_gd/colors.py +++ b/py_gd/colors.py @@ -42,7 +42,6 @@ def hex_to_rgb(hex_value): def build_from_named_colors(named_colors): - print(named_colors) return [(name, hex_to_rgb(hex_color)) for name, hex_color in named_colors.items()] @@ -86,11 +85,6 @@ def build_from_named_colors(named_colors): for dataname in dir(_cm_listed): if dataname.endswith("_data"): name = dataname[:-5].lstrip("_") - print("building colormap:", name) scheme = getattr(_cm_listed, dataname) - scheme = (np.array(scheme) * 255).round().astype(np.uint).tolist() + scheme = (np.array(scheme) * 255).round().astype(np.uint8).tolist() colorschemes[name] = [(str(i), tuple(c)) for i, c in enumerate(scheme)] - -# build named colorschemes - -