From 3242361c91850097e5879c57c6ba6ffb8c3742c1 Mon Sep 17 00:00:00 2001 From: Mahesh Balasubramaniam Date: Fri, 4 Jan 2013 12:01:34 +0000 Subject: [PATCH] added a minor change to the string expression and the for loop. --- processing/post/colormap_io.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/processing/post/colormap_io.py b/processing/post/colormap_io.py index a3183122a..cecb8446e 100644 --- a/processing/post/colormap_io.py +++ b/processing/post/colormap_io.py @@ -11,8 +11,8 @@ def write_gsmh(RGB_vector,name): def write_paraview(RGB_vector,name): colormap = open(str(name) + '.xml',"w") - colormap.write('\n') - for i in range(len(RGB_vector)): + colormap.write('\n') + for i in range(len(RGB_vector[0])): colormap.write('\n') colormap.write('') file.close(colormap) @@ -32,5 +32,3 @@ def write_raw(RGB_vector,name): colormap.write(str(RGB_vector[0][i])+'\t'+str(RGB_vector[1][i])+'\t'+str(RGB_vector[2][i])+'\n') file.close(colormap) - def read_raw(filename): - print 'void'