climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huiky...@apache.org
Subject [2/5] climate git commit: debugging after local testing
Date Wed, 15 Jul 2015 06:17:13 GMT
debugging after local testing


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

Branch: refs/heads/master
Commit: 35694adcd3133cace3c57a10228ac09f663d5c6d
Parents: 61fb713
Author: huikyole <huikyole.lee@jpl.nasa.gov>
Authored: Fri Jun 12 13:20:48 2015 -0700
Committer: huikyole <huikyole.lee@jpl.nasa.gov>
Committed: Fri Jun 12 13:20:48 2015 -0700

----------------------------------------------------------------------
 ocw/metrics.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/35694adc/ocw/metrics.py
----------------------------------------------------------------------
diff --git a/ocw/metrics.py b/ocw/metrics.py
index 23e0dd4..9b9aad6 100644
--- a/ocw/metrics.py
+++ b/ocw/metrics.py
@@ -106,7 +106,7 @@ class TemporalStdDev(UnaryMetric):
         :returns: The temporal standard deviation of the target dataset
         :rtype: :class:`ndarray`
         '''
-        return ma.std(target_dataset.values.std, axis=0)
+        return ma.std(target_dataset.values, axis=0, ddof=1)
 
 
 class StdDevRatio(BinaryMetric):
@@ -127,7 +127,7 @@ class StdDevRatio(BinaryMetric):
 
         :returns: The standard deviation ratio of the reference and target
         '''
-        return target_dataset.values.std() / ref_dataset.values.std()
+        return ma.std(target_dataset.values)/ma.std(ref_dataset.values)
 
 
 class PatternCorrelation(BinaryMetric):


Mime
View raw message