[GRASS-SVN] r69814 - grass/trunk/temporal/t.rast.what
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 13 15:12:02 PST 2016
Author: annakrat
Date: 2016-11-13 15:12:02 -0800 (Sun, 13 Nov 2016)
New Revision: 69814
Modified:
grass/trunk/temporal/t.rast.what/t.rast.what.py
Log:
t.rast.what: fix undefined variable, see #2957
Modified: grass/trunk/temporal/t.rast.what/t.rast.what.py
===================================================================
--- grass/trunk/temporal/t.rast.what/t.rast.what.py 2016-11-13 23:10:46 UTC (rev 69813)
+++ grass/trunk/temporal/t.rast.what/t.rast.what.py 2016-11-13 23:12:02 UTC (rev 69814)
@@ -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