[GRASS-SVN] r71791 - grass-addons/grass7/raster/r.futures/r.futures.potsurface
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 20 18:12:58 PST 2017
Author: annakrat
Date: 2017-11-20 18:12:58 -0800 (Mon, 20 Nov 2017)
New Revision: 71791
Modified:
grass-addons/grass7/raster/r.futures/r.futures.potsurface/r.futures.potsurface.py
Log:
r.futures.potsurface: fix error when input file has empty lines
Modified: grass-addons/grass7/raster/r.futures/r.futures.potsurface/r.futures.potsurface.py
===================================================================
--- grass-addons/grass7/raster/r.futures/r.futures.potsurface/r.futures.potsurface.py 2017-11-21 01:01:41 UTC (rev 71790)
+++ grass-addons/grass7/raster/r.futures/r.futures.potsurface/r.futures.potsurface.py 2017-11-21 02:12:58 UTC (rev 71791)
@@ -47,7 +47,7 @@
data = {}
with open(csv, 'r') as f:
- lines = f.readlines()
+ lines = f.read().splitlines()
header = lines[0].strip().split('\t')
maps = header[2:]
for line in lines[1:]:
More information about the grass-commit
mailing list