[GRASS-SVN] r68157 - grass-addons/grass7/raster/r.agent/r.agent.aco
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 25 13:27:35 PDT 2016
Author: martinl
Date: 2016-03-25 13:27:35 -0700 (Fri, 25 Mar 2016)
New Revision: 68157
Modified:
grass-addons/grass7/raster/r.agent/r.agent.aco/r.agent.aco.py
Log:
r.agent: fix compilation in locations with nsres!=ewres
Modified: grass-addons/grass7/raster/r.agent/r.agent.aco/r.agent.aco.py
===================================================================
--- grass-addons/grass7/raster/r.agent/r.agent.aco/r.agent.aco.py 2016-03-25 20:17:39 UTC (rev 68156)
+++ grass-addons/grass7/raster/r.agent/r.agent.aco/r.agent.aco.py 2016-03-25 20:27:35 UTC (rev 68157)
@@ -238,8 +238,6 @@
except ImportError:
raise error.EnvError("r.agent.aco:", "Please run inside GRASS.")
-world = anthill.Anthill(grassland.Grassland())
-
def setmaps(site, cost, wastecosts, inphero, outphero, wastephero):
"""
Set the user maps in place
@@ -383,5 +381,6 @@
if __name__ == "__main__":
options, flags = grass.parser()
+ world = anthill.Anthill(grassland.Grassland())
main()
More information about the grass-commit
mailing list