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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 11 10:31:06 PST 2015


Author: mic
Date: 2015-11-11 10:31:06 -0800 (Wed, 11 Nov 2015)
New Revision: 66811

Modified:
   grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py
Log:
fix setting layer was missing

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 18:24:54 UTC (rev 66810)
+++ grass-addons/grass7/raster/r.agent/r.agent.rand/r.agent.rand.py	2015-11-11 18:31:06 UTC (rev 66811)
@@ -113,9 +113,10 @@
     if output:
         if -1 == output.find('@'):
             output = output + '@' + grass.gisenv()['MAPSET']
+        world.playground.setgrasslayer('RESULT', output, True)
     else:
         raise error.DataError("r.agent.rand:", "The output map is mandatory.")
-    world.playground.grassmapnames['RESULT'] = output
+#    world.playground.grassmapnames['RESULT'] = output
     #TODO hopefully not really needed - workaround for broken(?) garray
 #    world.playground.createlayer("copy", output, True)
 #    world.playground.grassmapnames["copy"] = output



More information about the grass-commit mailing list