[GRASS-SVN] r56418 - grass-addons/grass7/raster/r.agent
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 25 16:22:12 PDT 2013
Author: mic
Date: 2013-05-25 16:22:11 -0700 (Sat, 25 May 2013)
New Revision: 56418
Modified:
grass-addons/grass7/raster/r.agent/r.agent.aco
Log:
fix single output run
Modified: grass-addons/grass7/raster/r.agent/r.agent.aco
===================================================================
--- grass-addons/grass7/raster/r.agent/r.agent.aco 2013-05-25 21:47:15 UTC (rev 56417)
+++ grass-addons/grass7/raster/r.agent/r.agent.aco 2013-05-25 23:22:11 UTC (rev 56418)
@@ -274,6 +274,9 @@
if world.addsequencenumber:
outputmapbasename = \
world.playground.grassmapnames[anthill.Anthill.RESULT].split("@")
+ else:
+ outputmapbasename = False
+ outputmapname = False
if 0 < outrounds < rounds:
# calculate when to write output
mainloops = rounds / outrounds
@@ -284,12 +287,9 @@
nextwrite = rounds
run = 0
while run < mainloops:
- print(run)
if outputmapbasename:
outputmapname = outputmapbasename[0] + str(run) + "@" + \
outputmapbasename[1]
- print(outputmapname)
-# grass.info(mainloops)
# loop and write out the contents at the end
world.letantsdance(nextwrite)
# Print the number of found paths
More information about the grass-commit
mailing list