CLIMATE-585 - Update bias metrics tests - Update the ordering of the bias calculation test calls to account for the fixes to the calculation ordering.
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/fe30368a Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/fe30368a Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/fe30368a Branch: refs/heads/master Commit: fe30368a2c244c545621723fb06286c677a4ca1a Parents: 3935c24 Author: Kim Whitehall <[email protected]> Authored: Mon Mar 2 09:43:28 2015 -0800 Committer: Michael Joyce <[email protected]> Committed: Thu Mar 12 09:25:13 2015 -0700 ---------------------------------------------------------------------- ocw/tests/test_metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/fe30368a/ocw/tests/test_metrics.py ---------------------------------------------------------------------- diff --git a/ocw/tests/test_metrics.py b/ocw/tests/test_metrics.py index 571ad4d..8edeaff 100644 --- a/ocw/tests/test_metrics.py +++ b/ocw/tests/test_metrics.py @@ -54,7 +54,7 @@ class TestBias(unittest.TestCase): '''Test bias function between reference dataset and target dataset.''' expected_result = np.zeros((12, 5, 5), dtype=np.int) expected_result.fill(-300) - np.testing.assert_array_equal(self.bias.run(self.reference_dataset, self.target_dataset), expected_result) + np.testing.assert_array_equal(self.bias.run(self.target_dataset, self.reference_dataset), expected_result) class TestTemporalStdDev(unittest.TestCase): @@ -206,7 +206,7 @@ class TestTemporalMeanBias(unittest.TestCase): '''Test mean bias function between reference dataset and target dataset.''' expected_result = np.zeros((5, 5), dtype=np.int) expected_result.fill(-300) - np.testing.assert_array_equal(self.mean_bias.run(self.reference_dataset, self.target_dataset), expected_result) + np.testing.assert_array_equal(self.mean_bias.run(self.target_dataset,self.reference_dataset), expected_result) def test_function_run_abs(self): '''Test mean bias function between reference dataset and target dataset with abs as True.'''
