[GRASS-SVN] r73946 - grass/branches/releasebranch_7_6/raster/r.horizon/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 16 06:37:34 PST 2019


Author: neteler
Date: 2019-01-16 06:37:34 -0800 (Wed, 16 Jan 2019)
New Revision: 73946

Modified:
   grass/branches/releasebranch_7_6/raster/r.horizon/testsuite/test_r_horizon.py
Log:
r.horizon/testsuite: fix test_raster_mode_one_direction for r73049 (allow negative angles); fix test for r73049 (allow negative angles) (trunk, r73915 + r73916)

Modified: grass/branches/releasebranch_7_6/raster/r.horizon/testsuite/test_r_horizon.py
===================================================================
--- grass/branches/releasebranch_7_6/raster/r.horizon/testsuite/test_r_horizon.py	2019-01-16 14:21:30 UTC (rev 73945)
+++ grass/branches/releasebranch_7_6/raster/r.horizon/testsuite/test_r_horizon.py	2019-01-16 14:37:34 UTC (rev 73946)
@@ -30,7 +30,7 @@
 280.000000,0.039774
 300.000000,0.032360
 320.000000,0.014804
-340.000000,0.000000
+340.000000,-0.001438
 360.000000,0.004724
 20.000000,0.012612
 40.000000,0.015207
@@ -51,7 +51,7 @@
 280.000000,0.039774
 300.000000,0.032360
 320.000000,0.014804
-340.000000,0.000000
+340.000000,-0.001438
 360.000000,0.004724
 20.000000,0.012612
 40.000000,0.015207
@@ -106,7 +106,7 @@
         module = SimpleModule('r.horizon', elevation='elevation',
                               output=self.horizon_output, direction=50)
         self.assertModule(module)
-        ref = {'min': 0, 'max': 0.70678365230560, 'stddev': 0.0360724286360789}
+        ref = {'min': -1.57079637050629, 'max': 0.70678365230560, 'stddev': 0.0708080140468585}
         self.assertRasterFitsUnivar(raster='test_horizon_output_from_elevation_050', reference=ref, precision=1e6)
 
     def test_raster_mode_multiple_direction(self):



More information about the grass-commit mailing list