Merge tag 'v5.42' into develop
bug fix
This commit is contained in:
@@ -1557,7 +1557,11 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True):
|
|||||||
if extracols and len(ids)==1:
|
if extracols and len(ids)==1:
|
||||||
w = Workout.objects.get(id=ids[0])
|
w = Workout.objects.get(id=ids[0])
|
||||||
row = rdata(w.csvfilename)
|
row = rdata(w.csvfilename)
|
||||||
f = row.df['TimeStamp (sec)'].diff().mean()
|
try:
|
||||||
|
f = row.df['TimeStamp (sec)'].diff().mean()
|
||||||
|
except AttributeError:
|
||||||
|
f = 0
|
||||||
|
|
||||||
if f != 0 and not np.isnan(f):
|
if f != 0 and not np.isnan(f):
|
||||||
windowsize = 2 * (int(10. / (f))) + 1
|
windowsize = 2 * (int(10. / (f))) + 1
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user