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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 11 09:36:04 PST 2015


Author: mic
Date: 2015-11-11 09:36:04 -0800 (Wed, 11 Nov 2015)
New Revision: 66803

Modified:
   grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py
Log:
fix typo

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 17:26:14 UTC (rev 66802)
+++ grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py	2015-11-11 17:36:04 UTC (rev 66803)
@@ -126,7 +126,7 @@
     """
 
     for i in range(rounds):
-        if i in range(maxagents - len(world.agents)):
+        for i in range(maxagents - len(world.agents)):
             world.bear(agentlife)
         for i in range(len(world.agents)):
             agent = world.agents[i]



More information about the grass-commit mailing list