[GRASS-SVN] r65952 - grass/trunk/lib/python/pygrass/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 17 22:22:35 PDT 2015
Author: zarch
Date: 2015-08-17 22:22:35 -0700 (Mon, 17 Aug 2015)
New Revision: 65952
Modified:
grass/trunk/lib/python/pygrass/raster/__init__.py
grass/trunk/lib/python/pygrass/raster/abstract.py
Log:
pygrass: fix raster doctest range outputs from integer to float
Modified: grass/trunk/lib/python/pygrass/raster/__init__.py
===================================================================
--- grass/trunk/lib/python/pygrass/raster/__init__.py 2015-08-18 05:20:21 UTC (rev 65951)
+++ grass/trunk/lib/python/pygrass/raster/__init__.py 2015-08-18 05:22:35 UTC (rev 65952)
@@ -70,14 +70,14 @@
>>> elev.num_cats()
0
>>> elev.info.range
- (56, 156)
+ (55.578792572021484, 156.32986450195312)
>>> elev.info
elevation@
rows: 1350
cols: 1500
north: 228500.0 south: 215000.0 nsres:10.0
east: 645000.0 west: 630000.0 ewres:10.0
- range: 56, 156
+ range: 55.578792572, 156.329864502
proj: 99
<BLANKLINE>
Modified: grass/trunk/lib/python/pygrass/raster/abstract.py
===================================================================
--- grass/trunk/lib/python/pygrass/raster/abstract.py 2015-08-18 05:20:21 UTC (rev 65951)
+++ grass/trunk/lib/python/pygrass/raster/abstract.py 2015-08-18 05:22:35 UTC (rev 65952)
@@ -57,7 +57,7 @@
cols: 1500
north: 228500.0 south: 215000.0 nsres:10.0
east: 645000.0 west: 630000.0 ewres:10.0
- range: 56, 156
+ range: 55.578792572, 156.329864502
proj: 99
<BLANKLINE>
More information about the grass-commit
mailing list