[GRASS-SVN] r68158 - grass-addons/grass7/raster/r.agent/r.agent.rand
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 25 13:28:38 PDT 2016
Author: martinl
Date: 2016-03-25 13:28:38 -0700 (Fri, 25 Mar 2016)
New Revision: 68158
Modified:
grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py
Log:
r.agent: fix compilation in locations with nsres!=ewres (r.agent.rand)
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 2016-03-25 20:27:35 UTC (rev 68157)
+++ grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py 2016-03-25 20:28:38 UTC (rev 68158)
@@ -97,8 +97,6 @@
except ImportError:
raise error.EnvError("r.agent.rand:", "Please run inside GRASS.")
-world = world.World(grassland.Grassland())
-
def setmaps(cost, output):
"""
Set the user maps in place
@@ -160,5 +158,6 @@
if __name__ == "__main__":
options, flags = grass.parser()
+ world = world.World(grassland.Grassland())
main()
More information about the grass-commit
mailing list