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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 18 08:15:11 PDT 2016


Author: mlennert
Date: 2016-10-18 08:15:11 -0700 (Tue, 18 Oct 2016)
New Revision: 69700

Modified:
   grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
Log:
i.segment.stats: find_file expects 'cell' not 'raster'


Modified: grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
===================================================================
--- grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2016-10-16 21:19:58 UTC (rev 69699)
+++ grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py	2016-10-18 15:15:11 UTC (rev 69700)
@@ -160,7 +160,7 @@
 
     for raster in rasters:
 	gscript.message(_("Calculating statistics for raster %s" % raster))
-        if not gscript.find_file(raster, element='raster')['name']:
+        if not gscript.find_file(raster, element='cell')['name']:
             gscript.message(_("Cannot find raster %s" % raster))
             continue
         rastername=raster.split('@')[0]



More information about the grass-commit mailing list