From 9278e1def5e2c34cbc4eb84656430e2347b79b6a Mon Sep 17 00:00:00 2001 From: Charles Doutriaux Date: Wed, 18 Nov 2015 22:30:15 -0800 Subject: [PATCH 1/2] fixed issue where old scr colormap file would not load opacity --- Packages/vcs/Lib/colormap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/vcs/Lib/colormap.py b/Packages/vcs/Lib/colormap.py index 08f85cab7f..a80ed691ae 100644 --- a/Packages/vcs/Lib/colormap.py +++ b/Packages/vcs/Lib/colormap.py @@ -33,7 +33,7 @@ def process_src(nm, code): for i in range(255): val = numbers[i * 3:i * 3 + 3] if val != (): - d[i] = list(val) + d[i] = list(val)+[100] cp = Cp(nm) cp.index.data.update(d) From 344cea0832cbe3639fd2acc0143d5cb7679acfa2 Mon Sep 17 00:00:00 2001 From: Charles Doutriaux Date: Thu, 19 Nov 2015 16:34:17 -0800 Subject: [PATCH 2/2] Update colormap.py fixes bug where flake8 does not see that the syntax was wrong and make @aashish24 and @sankhesh happy. --- Packages/vcs/Lib/colormap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/vcs/Lib/colormap.py b/Packages/vcs/Lib/colormap.py index a80ed691ae..81c0926fee 100644 --- a/Packages/vcs/Lib/colormap.py +++ b/Packages/vcs/Lib/colormap.py @@ -33,7 +33,7 @@ def process_src(nm, code): for i in range(255): val = numbers[i * 3:i * 3 + 3] if val != (): - d[i] = list(val)+[100] + d[i] = list(val) + [100] cp = Cp(nm) cp.index.data.update(d)