[GRASS-SVN] r69815 - grass/branches/releasebranch_7_2/temporal/t.rast.what
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 13 15:15:06 PST 2016
Author: annakrat
Date: 2016-11-13 15:15:06 -0800 (Sun, 13 Nov 2016)
New Revision: 69815
Modified:
grass/branches/releasebranch_7_2/temporal/t.rast.what/t.rast.what.py
Log:
t.rast.what: fix undefined variable, see #2957 (merge from trunk, r69814)
Modified: grass/branches/releasebranch_7_2/temporal/t.rast.what/t.rast.what.py
===================================================================
--- grass/branches/releasebranch_7_2/temporal/t.rast.what/t.rast.what.py 2016-11-13 23:12:02 UTC (rev 69814)
+++ grass/branches/releasebranch_7_2/temporal/t.rast.what/t.rast.what.py 2016-11-13 23:15:06 UTC (rev 69815)
@@ -217,7 +217,7 @@
overwrite=overwrite, flags=flags,
quiet=True)
else:
- grass.error(_("Please specify points or coordinates"))
+ gscript.error(_("Please specify points or coordinates"))
if len(maps) < nprocs:
nprocs = len(maps)
@@ -262,6 +262,11 @@
if remaining_maps > 0:
# Use a single process if less then 100 maps
if remaining_maps <= 100:
+ map_names = []
+ for i in range(remaining_maps):
+ map = maps[count]
+ map_names.append(map.get_id())
+ count += 1
mod = copy.deepcopy(r_what)
mod(map=map_names, output=file_name)
process_queue.put(mod)
More information about the grass-commit
mailing list