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/02 18:28:54 UTC
[2/3] git commit: CLIMATE-483 - Update PatternCorrelation tests
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 <jo...@apache.org>
Authored: Wed Jul 2 09:16:45 2014 -0700
Committer: Michael Joyce <jo...@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):