[GRASS-SVN] r65015 - grass/trunk/lib/python/docs/src
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 7 05:08:36 PDT 2015
Author: zarch
Date: 2015-04-07 05:08:36 -0700 (Tue, 07 Apr 2015)
New Revision: 65015
Modified:
grass/trunk/lib/python/docs/src/pygrass_modules.rst
Log:
Update documentation, thanks to Martin
Modified: grass/trunk/lib/python/docs/src/pygrass_modules.rst
===================================================================
--- grass/trunk/lib/python/docs/src/pygrass_modules.rst 2015-04-07 10:01:06 UTC (rev 65014)
+++ grass/trunk/lib/python/docs/src/pygrass_modules.rst 2015-04-07 12:08:36 UTC (rev 65015)
@@ -195,9 +195,9 @@
Another example of use: ::
- >>> info = Module("r.info", map="elevation", flags="r", finish_=True)
- >>> from pygrass.modules import stdout2dict
- >>> stdout2dict(info.stdout)
+ >>> info = Module("r.info", map="elevation", flags="r", stdout_=PIPE)
+ >>> from grass.script.utils import parse_key_val
+ >>> parse_key_val(info.outputs.stdout)
{'max': '156.3299', 'min': '55.57879'}
>>> info = Module("r.info", map="elevation", flags="r", finish_=False)
>>> category = Module("r.category", map="elevation",
More information about the grass-commit
mailing list