[GRASS-SVN] r71473 - grass/branches/releasebranch_7_2/lib/python/docs/src
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 7 05:07:46 PDT 2017
Author: martinl
Date: 2017-09-07 05:07:46 -0700 (Thu, 07 Sep 2017)
New Revision: 71473
Modified:
grass/branches/releasebranch_7_2/lib/python/docs/src/pygrass_raster.rst
Log:
PyGRASS docs: Cols and rows variables have been moved to .info (merge r71472 from trunk)
Modified: grass/branches/releasebranch_7_2/lib/python/docs/src/pygrass_raster.rst
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/docs/src/pygrass_raster.rst 2017-09-07 11:09:43 UTC (rev 71472)
+++ grass/branches/releasebranch_7_2/lib/python/docs/src/pygrass_raster.rst 2017-09-07 12:07:46 UTC (rev 71473)
@@ -77,11 +77,12 @@
>>> raster = reload(raster)
>>> elev = raster.RasterRow('elevation')
>>> # the cols attribute is set from the current region only when the map is open
- >>> elev.cols
+ >>> elev.info.cols
+ 0
>>> elev.open()
>>> elev.is_open()
True
- >>> elev.cols
+ >>> elev.info.cols
1500
>>> # we can read the elevation map, row by row
>>> for row in elev[:5]: print(row[:3])
More information about the grass-commit
mailing list