You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2014/07/14 16:41:50 UTC

[2/4] git commit: CLIMATE-484 - Remove rebinning metrics from tests

CLIMATE-484 - Remove rebinning metrics from tests


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/71706a9c
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/71706a9c
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/71706a9c

Branch: refs/heads/master
Commit: 71706a9c72e67d96d758eb17e29e3049b4cc4fd5
Parents: 9102a17
Author: Michael Joyce <jo...@apache.org>
Authored: Wed Jul 2 09:52:54 2014 -0700
Committer: Michael Joyce <jo...@apache.org>
Committed: Wed Jul 2 09:52:54 2014 -0700

----------------------------------------------------------------------
 ocw/tests/test_metrics.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/71706a9c/ocw/tests/test_metrics.py
----------------------------------------------------------------------
diff --git a/ocw/tests/test_metrics.py b/ocw/tests/test_metrics.py
index ae8570a..739224c 100644
--- a/ocw/tests/test_metrics.py
+++ b/ocw/tests/test_metrics.py
@@ -79,10 +79,10 @@ class TestTemporalStdDev(unittest.TestCase):
         npt.assert_almost_equal(self.temporal_std_dev.run(self.target_dataset), expected_result)
 
 
-class TestSpatialStdDevRatio(unittest.TestCase):
-    '''Test the metrics.SpatialStdDevRatio metric'''
+class TestStdDevRatio(unittest.TestCase):
+    '''Test the metrics.StdDevRatio metric'''
     def setUp(self):
-        self.spatial_std_dev_ratio = metrics.SpatialStdDevRatio()
+        self.std_dev_ratio = metrics.StdDevRatio()
         self.ref_dataset = Dataset(
             np.array([1., 1., 1., 1., 1.]),
             np.array([1., 1., 1., 1., 1.]),
@@ -102,7 +102,7 @@ class TestSpatialStdDevRatio(unittest.TestCase):
         )
 
     def test_function_run(self):
-        self.assertTrue(self.spatial_std_dev_ratio.run(self.ref_dataset, self.tar_dataset), 2.5)
+        self.assertTrue(self.std_dev_ratio.run(self.ref_dataset, self.tar_dataset), 2.5)
 
 
 class TestPatternCorrelation(unittest.TestCase):