From 34336bc6599955bb3efc24d5fdaf5747c99aca1c Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Fri, 18 Feb 2011 09:02:29 +0000 Subject: [PATCH] fixed bug when no argument was supplied --- processing/post/mentat_colorMap | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/processing/post/mentat_colorMap b/processing/post/mentat_colorMap index 52a2128da..cb5e6eec2 100755 --- a/processing/post/mentat_colorMap +++ b/processing/post/mentat_colorMap @@ -170,15 +170,15 @@ msg = [] config = readConfig(options.config,sys.argv[0]) -if colors[0] in config: - options.symmetric = config[colors[0]]['symmetric'] - hlsColor_range = [config[colors[0]]['lower'],\ - config[colors[0]]['upper']] -elif len(colors) == 0: +if len(colors) == 0: hlsColor_range = (options.symmetric and [[0,0.2,0.9],[0.333,0.2,0.9]]) or \ [[0.167,0.9,0.1],[0.167,0.1,0.9]] elif len(colors) == 2: hlsColor_range = [map(float, colors[i].split(',')) for i in range(2)] +elif colors[0] in config: + options.symmetric = config[colors[0]]['symmetric'] + hlsColor_range = [config[colors[0]]['lower'],\ + config[colors[0]]['upper']] else: msg.append('two color tuples required')