Private
Public Access
1
0

Merge tag 'v1.95' into develop

zero dt catch in dataprep
This commit is contained in:
Sander Roosendaal
2017-04-11 12:32:14 +02:00

View File

@@ -326,7 +326,7 @@ def nicepaceformat(values):
# Convert seconds to a Time Delta value, replacing NaN with a 5:50 pace
def timedeltaconv(x):
if not np.isnan(x):
if not np.isnan(x) and x != 0:
dt = datetime.timedelta(seconds=x)
else:
dt = datetime.timedelta(seconds=350.)