From 2ff6331379afaebe9760ffa84b7ca1823b123f9d Mon Sep 17 00:00:00 2001 From: Slaven Rezic Date: Tue, 17 Jun 2014 12:26:00 +0200 Subject: [PATCH] fill missing values in recalculateSeries with None, not 0 --- ceres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 ceres.py diff --git a/ceres.py b/ceres.py old mode 100644 new mode 100755 index d94103d..16d3197 --- a/ceres.py +++ b/ceres.py @@ -729,7 +729,7 @@ def recalculateSeries(values, old_timeStep, new_timeStep): if sub_arr: new_values.append(reduce(lambda x, y: x + y, sub_arr)/(len(sub_arr)*1.0)) else: - new_values.append(0) + new_values.append(None) return new_values def getTree(path):