[GRASS-SVN] r66812 - grass-addons/grass7/raster/r.agent/r.agent.rand

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 11 10:33:36 PST 2015


Author: mic
Date: 2015-11-11 10:33:36 -0800 (Wed, 11 Nov 2015)
New Revision: 66812

Modified:
   grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py
Log:
remove undefined input variable

Modified: grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py
===================================================================
--- grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py	2015-11-11 18:31:06 UTC (rev 66811)
+++ grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py	2015-11-11 18:33:36 UTC (rev 66812)
@@ -133,8 +133,7 @@
             agent.step()
             position = agent.getposition()
             newvalue = world.playground.getcellvalue('RESULT', position) + mark
-            if options['verbose']:
-                grass.message("setting " + positon + " to new value " + newvalue)
+            grass.message("setting " + positon + " to new value " + newvalue)
             world.playground.setcellvalue('RESULT', positon, newvalue)
     world.playground.writelayer('RESULT', False, overwrite)
 



More information about the grass-commit mailing list