[GRASS-SVN] r35395 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 12 23:23:27 EST 2009


Author: cmbarton
Date: 2009-01-12 23:23:27 -0500 (Mon, 12 Jan 2009)
New Revision: 35395

Modified:
   grass/trunk/gui/wxpython/gui_modules/profile.py
Log:
Fix various bugs resulting from the change to gcmd.RunCommand

Modified: grass/trunk/gui/wxpython/gui_modules/profile.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/profile.py	2009-01-13 04:20:18 UTC (rev 35394)
+++ grass/trunk/gui/wxpython/gui_modules/profile.py	2009-01-13 04:23:27 UTC (rev 35395)
@@ -289,7 +289,7 @@
                                   map = r['name'])
 
             if ret:
-                r['units'] = p.splitlines()[0].split('=')[1]
+                r['units'] = ret.splitlines()[0].split('=')[1]
 
             # update title
             self.ptitle += ' %s and' % r['name']
@@ -413,7 +413,7 @@
         import subprocess
         
         try:
-            ret = RunCommand("r.profile",
+            ret = gcmd.RunCommand("r.profile",
                              input=raster,
                              profile=coords,
                              null="nan",
@@ -424,7 +424,7 @@
                 return dataset
             
             for line in ret.splitlines():
-                dist, elev = outline.split(' ')
+                dist, elev = line.split(' ')
                 if elev != 'nan':
                     datalist.append((dist,elev))
 



More information about the grass-commit mailing list