[GRASS-SVN] r67548 - grass/branches/releasebranch_7_0/lib/python/docs/src
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 11 02:42:26 PST 2016
Author: lucadelu
Date: 2016-01-11 02:42:26 -0800 (Mon, 11 Jan 2016)
New Revision: 67548
Modified:
grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_raster.rst
Log:
pygrass: updated documentation (trunk r67547)
Modified: grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_raster.rst
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_raster.rst 2016-01-11 10:33:52 UTC (rev 67547)
+++ grass/branches/releasebranch_7_0/lib/python/docs/src/pygrass_raster.rst 2016-01-11 10:42:26 UTC (rev 67548)
@@ -161,8 +161,8 @@
[ 144.99488831 145.22894287 145.57142639]
>>> new = raster.RasterSegment('new')
>>> new.open('w', 'CELL')
- >>> for irow in xrange(elev.rows):
- ... new[irow] = elev[irow] < 144
+ >>> for irow, row in enumerate(elev):
+ ... new[irow] = row < 144
...
>>> for row in new[:5]: print(row[:3])
[1 1 1]
More information about the grass-commit
mailing list