[GRASS-SVN] r66807 - grass-addons/grass7/raster/r.agent/r.agent.rand
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 11 09:54:57 PST 2015
Author: mic
Date: 2015-11-11 09:54:57 -0800 (Wed, 11 Nov 2015)
New Revision: 66807
Modified:
grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py
Log:
remove unused 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 17:53:42 UTC (rev 66806)
+++ grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py 2015-11-11 17:54:57 UTC (rev 66807)
@@ -124,7 +124,6 @@
"""
Organize the agents on the playground.
"""
-
for i in range(rounds):
for i in range(int(maxagents) - len(world.agents)):
world.bear(agentlife)
@@ -134,8 +133,6 @@
position = agent.getposition()
newvalue = world.playground.getcellvalue('RESULT', position) + mark
world.playground.setcellvalue('RESULT', positon, newvalue)
- run += 1
-
world.playground.writelayer("copy")
def main():
More information about the grass-commit
mailing list