[GRASS-SVN] r35394 - grass/branches/develbranch_6/gui/wxpython/gui_modules

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


Author: cmbarton
Date: 2009-01-12 23:20:18 -0500 (Mon, 12 Jan 2009)
New Revision: 35394

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

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/profile.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/profile.py	2009-01-13 04:08:55 UTC (rev 35393)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/profile.py	2009-01-13 04:20:18 UTC (rev 35394)
@@ -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