Bläddra i källkod

PyGRASS docs: Cols and rows variables have been moved to .info

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71472 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 7 år sedan
förälder
incheckning
769dc63d2b
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      lib/python/docs/src/pygrass_raster.rst

+ 3 - 2
lib/python/docs/src/pygrass_raster.rst

@@ -77,11 +77,12 @@ added to the file as the last row. ::
     >>> 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])