climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1513190 - /incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py
Date Mon, 12 Aug 2013 16:27:31 GMT
Author: joyce
Date: Mon Aug 12 16:27:31 2013
New Revision: 1513190

URL: http://svn.apache.org/r1513190
Log:
CLIMATE-214 - Update unit tests to work with new init format

Modified:
    incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py

Modified: incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py?rev=1513190&r1=1513189&r2=1513190&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py Mon Aug 12 16:27:31
2013
@@ -20,13 +20,13 @@
 import unittest
 import numpy as np
 import datetime as dt
-from dataset import Dataset
-from evaluation import Evaluation
-from metrics import Bias, TemporalStdDev
+from ocw.dataset import Dataset
+from ocw.evaluation import Evaluation
+from ocw.metrics import Bias, TemporalStdDev
 
 class TestEvaluation(unittest.TestCase):
     def setUp(self):
-        self.eval = Evaluation()
+        self.eval = Evaluation(None, [], [])
 
         lat = np.array([10, 12, 14, 16, 18])
         lon = np.array([100, 102, 104, 106, 108])
@@ -46,7 +46,7 @@ class TestEvaluation(unittest.TestCase):
         self.assertEquals(self.eval.unary_metrics, [])
 
     def test_add_ref_dataset(self):
-        self.eval.add_ref_dataset(self.test_dataset)
+        self.eval = Evaluation(self.test_dataset, [], [])
 
         self.assertEqual(self.eval.ref_dataset.variable, self.variable)
 



Mime
View raw message