Changeset 68722


Ignore:
Timestamp:
Jun 21, 2016, 7:25:39 PM (8 years ago)
Author:
wenzeslaus
Message:

r.forestfrag: fix test reference data after r68717 (see #3067)

Location:
grass-addons/grass7/raster/r.forestfrag/testsuite
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • grass-addons/grass7/raster/r.forestfrag/testsuite/r_forestfrag_ncspm.py

    r68693 r68722  
     1#!/usr/bin/env python
     2
     3############################################################################
     4#
     5# MODULE:        r_forestfrag_ncspm
     6# AUTHOR:        Vaclav Petras
     7# PURPOSE:       Test using NC SPM data
     8# COPYRIGHT:     (C) 2016 by Vaclav Petras and the GRASS Development Team
     9#
     10#                This program is free software under the GNU General Public
     11#                License (>=v2). Read the file COPYING that comes with GRASS
     12#                for details.
     13#
     14#############################################################################
     15
    116from grass.gunittest.case import TestCase
    217from grass.gunittest.main import test
     
    3954        ref = dict(n=249323, null_cells=1, cells=249324, min=0, max=5,
    4055                   range=5, mean=2.2925, mean_of_abs=2.2925,
    41                    stddev=2.3564, variance=5.5526, coeff_var=102.7886,
    42                    sum=571564)
     56                   stddev=2.3564, variance=5.5527, coeff_var=102.7879,
     57                   sum=571572)
    4358        self.assertRasterFitsUnivar(raster=self.forest_frag,
    4459                                    reference=ref, precision=0.0006)
  • grass-addons/grass7/raster/r.forestfrag/testsuite/r_forestfrag_xy.py

    r68698 r68722  
     1#!/usr/bin/env python
     2
     3############################################################################
     4#
     5# MODULE:        r_forestfrag_xy
     6# AUTHOR:        Vaclav Petras
     7# PURPOSE:       Test with complete but small ref output (diff windows)
     8# COPYRIGHT:     (C) 2016 by Vaclav Petras and the GRASS Development Team
     9#
     10#                This program is free software under the GNU General Public
     11#                License (>=v2). Read the file COPYING that comes with GRASS
     12#                for details.
     13#
     14#############################################################################
     15
     16
    117from grass.gunittest.case import TestCase
    218from grass.gunittest.main import test
     
    75910 0 0 0 0 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 0 0 0 2 1 1 1 0 0 0 1
    76920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3 3 3 3 3 3 5 5 4 4 4 4 0 0 0 0 0 0 4 4 3 3 3 3 2 2 2 1 1 0 0
     
    202218        self.runModule('r.in.ascii', input='-', stdin_=FOREST,
    203219                       output=self.forest)
     220        self.to_remove.append(self.forest)
    204221        self.runModule('g.region', raster=self.forest)
    205         self.to_remove.append(self.forest)
    206222
    207223    def tearDown(self):
Note: See TracChangeset for help on using the changeset viewer.