Private
Public Access
1
0

fix zero dt

This commit is contained in:
Sander Roosendaal
2017-04-11 12:30:57 +02:00
parent 39f3ccec65
commit 6e5f63a4ce

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.)