made fix_newtons a bit more flexible
This commit is contained in:
@@ -1269,13 +1269,13 @@ def datafusion(id1,id2,columns,offset):
|
||||
|
||||
return df
|
||||
|
||||
def fix_newtons(id=0):
|
||||
def fix_newtons(id=0,limit=3000):
|
||||
# rowdata,row = getrowdata_db(id=id,doclean=False,convertnewtons=False)
|
||||
rowdata = getsmallrowdata_db(['peakforce'],ids=[id],doclean=False)
|
||||
try:
|
||||
#avgforce = rowdata['averageforce']
|
||||
peakforce = rowdata['peakforce']
|
||||
if peakforce.mean() > 3000:
|
||||
if peakforce.mean() > limit:
|
||||
w = Workout.objects.get(id=id)
|
||||
print "fixing ",id
|
||||
rowdata = rdata(w.csvfilename)
|
||||
|
||||
Reference in New Issue
Block a user