[GRASS-SVN] r69484 - grass-addons/grass7/raster/r.viewshed.cva
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 14 10:00:13 PDT 2016
Author: annakrat
Date: 2016-09-14 10:00:13 -0700 (Wed, 14 Sep 2016)
New Revision: 69484
Modified:
grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py
Log:
r.viewshed.cva: fix on Windows, needed because of #3155
Modified: grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py
===================================================================
--- grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py 2016-09-14 11:50:14 UTC (rev 69483)
+++ grass-addons/grass7/raster/r.viewshed.cva/r.viewshed.cva.py 2016-09-14 17:00:13 UTC (rev 69484)
@@ -148,7 +148,8 @@
# read the coordinates, and parse them up.
masterlist = []
for line in output_points.splitlines():
- masterlist.append(line.strip().split(','))
+ if line: # see ticket #3155
+ masterlist.append(line.strip().split(','))
# now, loop through the master list and run r.viewshed for each of the sites,
# and append the viewsheds to a list (so we can work with them later)
vshed_list = []
More information about the grass-commit
mailing list