[GRASS-SVN] r70000 - grass/branches/releasebranch_7_0/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 4 14:51:50 PST 2016
Author: martinl
Date: 2016-12-04 14:51:50 -0800 (Sun, 04 Dec 2016)
New Revision: 70000
Modified:
grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py
Log:
libtemporal: simplify percent() calls in dataset_mapcalculator() (merge r69998 from trunk)
Modified: grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py 2016-12-04 22:49:16 UTC (rev 69999)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/mapcalc.py 2016-12-04 22:51:50 UTC (rev 70000)
@@ -196,8 +196,7 @@
for i in range(num):
count += 1
- if count % 10 == 0:
- msgr.percent(count, num, 1)
+ msgr.percent(count, num, 10)
# Create the r.mapcalc statement for the current time step
map_name = "{base}_{suffix}".format(base=base,
@@ -294,8 +293,7 @@
for new_map in map_list:
count += 1
- if count % 10 == 0:
- msgr.percent(count, num, 1)
+ msgr.percent(count, num, 10)
# Read the map data
new_map.load()
@@ -315,8 +313,6 @@
# Update the spatio-temporal extent and the metadata table entries
new_sp.update_from_registered_maps(dbif)
- msgr.percent(1, 1, 1)
-
# Remove empty maps
if len(empty_maps) > 0:
names = ""
More information about the grass-commit
mailing list