some debugging of OTW physics
This commit is contained in:
@@ -35,6 +35,24 @@ database_url = 'mysql://{user}:{password}@{host}:{port}/{database_name}'.format(
|
||||
|
||||
database_url_debug = 'sqlite:///'+database_name
|
||||
|
||||
# mapping the DB column names to the CSV file column names
|
||||
columndict = {
|
||||
'time':'TimeStamp (sec)',
|
||||
'hr':' HRCur (bpm)',
|
||||
'pace':' Stroke500mPace (sec/500m)',
|
||||
'spm':' Cadence (stokes/min)',
|
||||
'power':' Power (watts)',
|
||||
'averageforce':' AverageDriveForce (lbs)',
|
||||
'drivelength':' DriveLength (meters)',
|
||||
'peakforce':' PeakDriveForce (lbs)',
|
||||
'distance':' Horizontal (meters)',
|
||||
'catch':'catch',
|
||||
'finish':'finish',
|
||||
'peakforceangle':'peakforceangle',
|
||||
'wash':'wash',
|
||||
'slip':'wash',
|
||||
'workoutstate':' WorkoutState',
|
||||
}
|
||||
|
||||
from scipy.signal import savgol_filter
|
||||
|
||||
@@ -563,6 +581,7 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
|
||||
cumdist = rowdatadf.ix[:,'cum_dist']
|
||||
|
||||
power = rowdatadf.ix[:,' Power (watts)']
|
||||
|
||||
averageforce = rowdatadf.ix[:,' AverageDriveForce (lbs)']
|
||||
drivelength = rowdatadf.ix[:,' DriveLength (meters)']
|
||||
try:
|
||||
|
||||
@@ -173,7 +173,7 @@ def handle_otwsetpower(f1,boattype,weightvalue,
|
||||
powermeasured=powermeasured)
|
||||
|
||||
# save data
|
||||
rowdata.write_csv(f1)
|
||||
rowdata.write_csv(f1,gzip=True)
|
||||
update_strokedata(workoutid,rowdata.df,debug=debug)
|
||||
|
||||
# send email
|
||||
|
||||
BIN
rowsanda_107501
BIN
rowsanda_107501
Binary file not shown.
Reference in New Issue
Block a user