going through tests
This commit is contained in:
@@ -205,7 +205,7 @@ def get_video_data(w, groups=['basic'], mode='water'):
|
||||
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],
|
||||
df = getsmallrowdata_pd(columns, ids=[w.id],
|
||||
workstrokesonly=False, doclean=False, compute=False)
|
||||
|
||||
df['time'] = (df['time']-df['time'].min())/1000.
|
||||
@@ -1772,7 +1772,7 @@ def read_cols_pl(ids, columns):
|
||||
if len(ids) == 0:
|
||||
return pl.DataFrame()
|
||||
|
||||
df = getsmallrowdata_pl(columns, ids=ids, doclean=False, compute=False)
|
||||
df = read_data(columns, ids=ids, doclean=False, compute=False)
|
||||
|
||||
if 'peakforce' in columns:
|
||||
funits = ((w.id, w.forceunit)
|
||||
@@ -1980,7 +1980,7 @@ def datafusion(id1, id2, columns, offset):
|
||||
|
||||
def fix_newtons(id=0, limit=3000): # pragma: no cover
|
||||
# rowdata,row = getrowdata_db(id=id,doclean=False,convertnewtons=False)
|
||||
rowdata = getsmallrowdata_db(['peakforce'], ids=[id], doclean=False)
|
||||
rowdata = read_data(['peakforce'], ids=[id], doclean=False)
|
||||
try:
|
||||
peakforce = rowdata['peakforce']
|
||||
if peakforce.mean() > limit:
|
||||
|
||||
Reference in New Issue
Block a user