[GRASS-SVN] r66757 - grass-addons/grass7/raster/r.category.trim

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 6 01:45:43 PST 2015


Author: pvanbosgeo
Date: 2015-11-06 01:45:43 -0800 (Fri, 06 Nov 2015)
New Revision: 66757

Modified:
   grass-addons/grass7/raster/r.category.trim/r.category.trim.py
Log:
bugfix

Modified: grass-addons/grass7/raster/r.category.trim/r.category.trim.py
===================================================================
--- grass-addons/grass7/raster/r.category.trim/r.category.trim.py	2015-11-06 03:21:48 UTC (rev 66756)
+++ grass-addons/grass7/raster/r.category.trim/r.category.trim.py	2015-11-06 09:45:43 UTC (rev 66757)
@@ -167,7 +167,7 @@
         else:
             RCAT1 = [w.replace('\t', ',') for w in RCAT]
         RCAT1.insert(0, "CATEGORY,CATEGORY LABEL")
-        CV1 = CV; CV1.insert(0,"RGB")
+        CV1 = list(CV); CV1.insert(0,"RGB")
         text_file = open(CSV, "w")
         for k in xrange(len(RCAT1)):
             text_file.write(RCAT1[k] + "," + CV1[k] + "\n")



More information about the grass-commit mailing list