Private
Public Access
1
0

updated dataprepnodjango

This commit is contained in:
Sander Roosendaal
2018-05-15 17:15:23 +02:00
parent c2f1df0c87
commit ce603d343f

View File

@@ -59,6 +59,7 @@ database_url_debug = 'sqlite:///'+database_name_dev
columndict = {
'time':'TimeStamp (sec)',
'hr':' HRCur (bpm)',
'velo': ' AverageBoatSpeed (m/s)',
'pace':' Stroke500mPace (sec/500m)',
'spm':' Cadence (stokes/min)',
'power':' Power (watts)',
@@ -977,6 +978,7 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
rowdatadf.loc[row_index,' Stroke500mPace (sec/500m)'] = 3000.
p = rowdatadf.ix[:,' Stroke500mPace (sec/500m)']
velo = rowdatadf.ix[:,' AverageBoatSpeed (m/s)']
hr = rowdatadf.ix[:,' HRCur (bpm)']
spm = rowdatadf.ix[:,' Cadence (stokes/min)']
cumdist = rowdatadf.ix[:,'cum_dist']
@@ -1060,6 +1062,7 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
cumdist = cumdist,
ftime = niceformat(t2),
fpace = nicepaceformat(p2),
velo=velo,
driveenergy=driveenergy,
distanceperstroke=distanceperstroke,
power=power,