[GRASS-SVN] r41133 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 20 18:37:47 EST 2010
Author: cmbarton
Date: 2010-02-20 18:37:47 -0500 (Sat, 20 Feb 2010)
New Revision: 41133
Modified:
grass/trunk/gui/wxpython/gui_modules/profile.py
Log:
Fix error in parsing r.profile output. AFAICT, this problem arose from some kind of change in the r.profile output since this same syntax was not problematic in the recent past.
Modified: grass/trunk/gui/wxpython/gui_modules/profile.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/profile.py 2010-02-20 23:14:26 UTC (rev 41132)
+++ grass/trunk/gui/wxpython/gui_modules/profile.py 2010-02-20 23:37:47 UTC (rev 41133)
@@ -453,7 +453,7 @@
return dataset
for line in ret.splitlines():
- dist, elev = line.split(' ')
+ dist, elev = line.strip().split(' ')
if elev != 'nan':
datalist.append((dist,elev))
More information about the grass-commit
mailing list