fix zero dt
This commit is contained in:
@@ -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.)
|
||||
|
||||
Reference in New Issue
Block a user