[GRASS-SVN] r57526 - grass/trunk/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 28 05:31:10 PDT 2013


Author: huhabla
Date: 2013-08-28 05:31:10 -0700 (Wed, 28 Aug 2013)
New Revision: 57526

Modified:
   grass/trunk/lib/python/pygrass/modules/interface/module.py
Log:
New test


Modified: grass/trunk/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/module.py	2013-08-28 11:56:38 UTC (rev 57525)
+++ grass/trunk/lib/python/pygrass/modules/interface/module.py	2013-08-28 12:31:10 UTC (rev 57526)
@@ -36,6 +36,15 @@
 >>> new_neighbors2.get_bash()
 'r.neighbors input=mapD method=average size=3 quantile=0.5 output=mapB'
 
+>>> neighbors = pymod.Module("r.neighbors")
+>>> neighbors.get_bash()
+'r.neighbors method=average size=3 quantile=0.5'
+
+>>> new_neighbors3 = copy.deepcopy(neighbors)
+>>> new_neighbors3(input="mapA", size=3, output="mapB", run_=False)
+>>> new_neighbors3.get_bash()
+'r.neighbors input=mapA method=average size=3 quantile=0.5 output=mapB'
+
 @endcode
 """
 



More information about the grass-commit mailing list