climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [2/3] git commit: CLIMATE-483 - Update PatternCorrelation tests
Date Wed, 02 Jul 2014 16:28:54 GMT
CLIMATE-483 - Update PatternCorrelation tests


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

Branch: refs/heads/master
Commit: c8ab8c24a04de0ed057b6efd65f3dded9b482322
Parents: 4a5f381
Author: Michael Joyce <joyce@apache.org>
Authored: Wed Jul 2 09:16:45 2014 -0700
Committer: Michael Joyce <joyce@apache.org>
Committed: Wed Jul 2 09:18:25 2014 -0700

----------------------------------------------------------------------
 ocw/tests/test_metrics.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/c8ab8c24/ocw/tests/test_metrics.py
----------------------------------------------------------------------
diff --git a/ocw/tests/test_metrics.py b/ocw/tests/test_metrics.py
index 2502070..ae8570a 100644
--- a/ocw/tests/test_metrics.py
+++ b/ocw/tests/test_metrics.py
@@ -128,9 +128,8 @@ class TestPatternCorrelation(unittest.TestCase):
         )
 
     def test_function_run(self):
-        pattern, p_value = self.pattern_correlation.run(self.ref_dataset, self.tar_dataset)
+        pattern = self.pattern_correlation.run(self.tar_dataset, self.ref_dataset)
         self.assertEqual(pattern, 1.0)
-        self.assertEqual(p_value, 0.0)
 
 
 class TestMeanBias(unittest.TestCase):


Mime
View raw message