[GRASS-SVN] r71436 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 25 08:14:33 PDT 2017
Author: zarch
Date: 2017-08-25 08:14:33 -0700 (Fri, 25 Aug 2017)
New Revision: 71436
Modified:
grass/trunk/lib/python/temporal/mapcalc.py
Log:
temporal.mapcalc: added warning before removing empty maps
Modified: grass/trunk/lib/python/temporal/mapcalc.py
===================================================================
--- grass/trunk/lib/python/temporal/mapcalc.py 2017-08-25 14:55:49 UTC (rev 71435)
+++ grass/trunk/lib/python/temporal/mapcalc.py 2017-08-25 15:14:33 UTC (rev 71436)
@@ -319,6 +319,9 @@
# Remove empty maps
if len(empty_maps) > 0:
+ n_empty, n_tot = len(empty_maps), len(map_list)
+ msgr.warning(_("Removing {}/{} ({}%) maps because empty..."
+ ).format(n_empty, n_tot, n_empty * 100. / n_tot))
names = ""
count = 0
for map in empty_maps:
More information about the grass-commit
mailing list