[GRASS-SVN] r71472 - grass/trunk/lib/python/docs/src

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 7 04:09:43 PDT 2017


Author: marisn
Date: 2017-09-07 04:09:43 -0700 (Thu, 07 Sep 2017)
New Revision: 71472

Modified:
   grass/trunk/lib/python/docs/src/pygrass_raster.rst
Log:
PyGRASS docs: Cols and rows variables have been moved to .info

Modified: grass/trunk/lib/python/docs/src/pygrass_raster.rst
===================================================================
--- grass/trunk/lib/python/docs/src/pygrass_raster.rst	2017-09-06 18:19:48 UTC (rev 71471)
+++ grass/trunk/lib/python/docs/src/pygrass_raster.rst	2017-09-07 11:09:43 UTC (rev 71472)
@@ -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