ソースを参照

pygrass: fix raster doctest range outputs from integer to float

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65952 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 9 年 前
コミット
80969d86ec

+ 2 - 2
lib/python/pygrass/raster/__init__.py

@@ -70,14 +70,14 @@ class RasterRow(RasterAbstractBase):
     >>> 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>
 

+ 1 - 1
lib/python/pygrass/raster/abstract.py

@@ -57,7 +57,7 @@ class Info(object):
             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>