Private
Public Access
1
0

check for nan

This commit is contained in:
Sander Roosendaal
2016-11-27 22:11:24 +01:00
parent 47c92e2fbe
commit db29c4152d

View File

@@ -71,7 +71,10 @@ def nicepaceformat(values):
return out
def timedeltaconv(x):
dt = datetime.timedelta(seconds=x)
if not np.isnan(x):
dt = datetime.timedelta(seconds=x)
else:
dt = 350.
return dt