You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/09/10 18:39:49 UTC
svn commit: r1521543 - /incubator/climate/trunk/ocw/metrics.py
Author: joyce
Date: Tue Sep 10 16:39:49 2013
New Revision: 1521543
URL: http://svn.apache.org/r1521543
Log:
CLIMATE-290 - Fix invalid dataset reference in TemporalStdDev
Modified:
incubator/climate/trunk/ocw/metrics.py
Modified: incubator/climate/trunk/ocw/metrics.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw/metrics.py?rev=1521543&r1=1521542&r2=1521543&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/metrics.py (original)
+++ incubator/climate/trunk/ocw/metrics.py Tue Sep 10 16:39:49 2013
@@ -93,4 +93,4 @@ class TemporalStdDev(UnaryMetric):
:returns: The temporal standard deviation of the target dataset
:rtype: Numpy Array
'''
- return datasets[0].values.std(axi=0, ddof=1)
+ return target_dataset.values.std(axi=0, ddof=1)