[GRASS-SVN] r69997 - grass-addons/grass7/imagery/i.segment.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 4 11:50:12 PST 2016


Author: martinl
Date: 2016-12-04 11:50:12 -0800 (Sun, 04 Dec 2016)
New Revision: 69997

Modified:
   grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
Log:
i.segment.stats: messages cosmetics

Modified: grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2016-12-04 19:45:39 UTC (rev 69996)
+++ grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2016-12-04 19:50:12 UTC (rev 69997)
@@ -140,7 +140,7 @@
 
     stats_temp_file = gscript.tempfile()
     if area_measures:
-	gscript.message(_("Calculating geometry statistics"))
+	gscript.message(_("Calculating geometry statistics..."))
 	output_header += area_measures
 	stat_indices = [geometry_stat_dict[x] for x in area_measures]
         gscript.run_command('r.object.geometry',
@@ -159,7 +159,7 @@
 		output_dict[values[0]] = [values[x] for x in stat_indices]
 
     for raster in rasters:
-	gscript.message(_("Calculating statistics for raster %s" % raster))
+	gscript.message(_("Calculating statistics for raster map <%s>..." % raster))
         if not gscript.find_file(raster, element='cell')['name']:
             gscript.message(_("Cannot find raster %s" % raster))
             continue
@@ -205,7 +205,7 @@
         f.close()
 
     if vectormap:
-	gscript.message(_("Creating vector map"))
+	gscript.message(_("Creating output vector map..."))
         temporary_vect = 'segmstat_tmp_vect_%d' % os.getpid()
         gscript.run_command('r.to.vect',
                             input_=segment_map,



More information about the grass-commit mailing list