check for nan
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user