in stroke extra metrics (diff, minpos, maxpos)
This commit is contained in:
@@ -1663,6 +1663,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)
|
||||||
|
try:
|
||||||
|
row.set_instroke_metrics()
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f = row.df['TimeStamp (sec)'].diff().mean()
|
f = row.df['TimeStamp (sec)'].diff().mean()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|||||||
@@ -8410,6 +8410,10 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
|||||||
|
|
||||||
|
|
||||||
rowdata = rdata(row.csvfilename)
|
rowdata = rdata(row.csvfilename)
|
||||||
|
try:
|
||||||
|
rowdata.set_instroke_metrics()
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
try:
|
try:
|
||||||
additionalmetrics = rowdata.get_additional_metrics()
|
additionalmetrics = rowdata.get_additional_metrics()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|||||||
Reference in New Issue
Block a user