climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1521554 - /incubator/climate/trunk/ocw/evaluation.py
Date Tue, 10 Sep 2013 17:18:26 GMT
Author: joyce
Date: Tue Sep 10 17:18:26 2013
New Revision: 1521554

URL: http://svn.apache.org/r1521554
Log:
CLIMATE-291 - Update Evaluation imports and unary check

Modified:
    incubator/climate/trunk/ocw/evaluation.py

Modified: incubator/climate/trunk/ocw/evaluation.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw/evaluation.py?rev=1521554&r1=1521553&r2=1521554&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/evaluation.py (original)
+++ incubator/climate/trunk/ocw/evaluation.py Tue Sep 10 17:18:26 2013
@@ -21,7 +21,7 @@ Classes: 
 '''
 
 import logging
-from metrics import Metric
+from metrics import Metric, UnaryMetric, BinaryMetric
 from dataset import Dataset, Bounds
 import ocw.dataset_processor as DSP
 
@@ -181,7 +181,7 @@ class Evaluation(object):
             logging.error(error)
             raise TypeError(error)
 
-        if metric.is_unary:
+        if isinstance(metric, UnaryMetric):
             self.unary_metrics.append(metric)
         else:
             self.metrics.append(metric)



Mime
View raw message