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