CLIMATE-540: Change name of MeanBias to TemporalMeanBias

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

Branch: refs/heads/master
Commit: 1c6566ef0016f0879f889482a13abaf32a13787a
Parents: 5220710
Author: rlaidlaw <[email protected]>
Authored: Wed Oct 29 18:20:22 2014 -0700
Committer: rlaidlaw <[email protected]>
Committed: Wed Oct 29 18:20:22 2014 -0700

----------------------------------------------------------------------
 ocw/metrics.py            | 2 +-
 ocw/tests/test_metrics.py | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/1c6566ef/ocw/metrics.py
----------------------------------------------------------------------
diff --git a/ocw/metrics.py b/ocw/metrics.py
index 68860a9..2ff276b 100644
--- a/ocw/metrics.py
+++ b/ocw/metrics.py
@@ -149,7 +149,7 @@ class PatternCorrelation(BinaryMetric):
         return stats.pearsonr(ref_dataset.values.flatten(), 
target_dataset.values.flatten())[0]
 
 
-class MeanBias(BinaryMetric):
+class TemporalMeanBias(BinaryMetric):
     '''Calculate the bias averaged over time.'''
 
     def run(self, ref_dataset, target_dataset, absolute=False):

http://git-wip-us.apache.org/repos/asf/climate/blob/1c6566ef/ocw/tests/test_metrics.py
----------------------------------------------------------------------
diff --git a/ocw/tests/test_metrics.py b/ocw/tests/test_metrics.py
index f27cc9d..74cd8f0 100644
--- a/ocw/tests/test_metrics.py
+++ b/ocw/tests/test_metrics.py
@@ -132,10 +132,10 @@ class TestPatternCorrelation(unittest.TestCase):
         self.assertEqual(pattern, 1.0)
 
 
-class TestMeanBias(unittest.TestCase):
-    '''Test the metrics.MeanBias metric.'''
+class TestTemporalMeanBias(unittest.TestCase):
+    '''Test the metrics.TemporalMeanBias metric.'''
     def setUp(self):
-        self.mean_bias = metrics.MeanBias()
+        self.mean_bias = metrics.TemporalMeanBias()
         # Initialize reference dataset
         self.reference_lat = np.array([10, 12, 14, 16, 18])
         self.reference_lon = np.array([100, 102, 104, 106, 108])

Reply via email to