[GRASS-SVN] r71441 - grass/branches/releasebranch_7_2/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 26 11:55:58 PDT 2017


Author: neteler
Date: 2017-08-26 11:55:58 -0700 (Sat, 26 Aug 2017)
New Revision: 71441

Modified:
   grass/branches/releasebranch_7_2/lib/python/temporal/mapcalc.py
Log:
temporal.mapcalc: added warning before removing empty maps (trunk, r71436)

Modified: grass/branches/releasebranch_7_2/lib/python/temporal/mapcalc.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/temporal/mapcalc.py	2017-08-26 13:48:29 UTC (rev 71440)
+++ grass/branches/releasebranch_7_2/lib/python/temporal/mapcalc.py	2017-08-26 18:55:58 UTC (rev 71441)
@@ -315,6 +315,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