better metrics selection
This commit is contained in:
@@ -123,9 +123,11 @@ from scipy.signal import savgol_filter
|
||||
|
||||
import datetime
|
||||
|
||||
def get_video_data(w,groups=['basic']):
|
||||
|
||||
def get_video_data(w,groups=['basic'],mode='water'):
|
||||
modes = [mode,'both','basic']
|
||||
columns = ['time','velo','spm']
|
||||
columns += [name for name,d in rowingmetrics if d['group'] in groups]
|
||||
columns += [name for name,d in rowingmetrics if d['group'] in groups and d['mode'] in modes]
|
||||
columns = list(set(columns))
|
||||
df = getsmallrowdata_db(columns,ids=[w.id],
|
||||
workstrokesonly=False,doclean=False,compute=False)
|
||||
|
||||
Reference in New Issue
Block a user