[GRASS-SVN] r73916 - grass/trunk/raster/r.horizon/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 6 06:40:54 PST 2019


Author: mmetz
Date: 2019-01-06 06:40:54 -0800 (Sun, 06 Jan 2019)
New Revision: 73916

Modified:
   grass/trunk/raster/r.horizon/testsuite/test_r_horizon.py
Log:
r.horizon: fix test_raster_mode_one_direction for r73049 (allow negative angles)

Modified: grass/trunk/raster/r.horizon/testsuite/test_r_horizon.py
===================================================================
--- grass/trunk/raster/r.horizon/testsuite/test_r_horizon.py	2019-01-06 14:36:45 UTC (rev 73915)
+++ grass/trunk/raster/r.horizon/testsuite/test_r_horizon.py	2019-01-06 14:40:54 UTC (rev 73916)
@@ -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