Kaynağa Gözat

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.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41133 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 15 yıl önce
ebeveyn
işleme
c9843dc0a7
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      gui/wxpython/gui_modules/profile.py

+ 1 - 1
gui/wxpython/gui_modules/profile.py

@@ -453,7 +453,7 @@ class ProfileFrame(wx.Frame):
                 return dataset
             
             for line in ret.splitlines():
-                dist, elev = line.split(' ')
+                dist, elev = line.strip().split(' ')
                 if elev != 'nan':
                     datalist.append((dist,elev))