Private
Public Access
1
0

Merge tag 'v7.05' into develop

bug fix
This commit is contained in:
Sander Roosendaal
2018-06-27 19:04:18 +02:00
2 changed files with 37 additions and 1 deletions

View File

@@ -1219,10 +1219,45 @@ def dataprep(rowdatadf,id=0,bands=True,barchart=True,otwpower=True,
data = data.replace([-np.inf,np.inf],np.nan)
data = data.fillna(method='ffill')
# write data if id given
if id != 0:
data['workoutid'] = id
data = data[['averageforce',
'cumdist',
'distance',
'distanceperstroke',
'driveenergy',
'drivelength',
'drivespeed',
'forceratio',
'fpace',
'ftime',
'hr',
'pace',
'peakforce',
'power',
'spm',
'time',
'velo',
'workoutstate',
'x_right',
'wash',
'catch',
'slip',
'finish',
'peakforceangle',
'totalangle',
'effectiveangle',
'efficiency',
'ergpace',
'nowindpace',
'equivergpower',
'fergpace',
'fnowindpace',
'workoutid']]
if debug:
engine = create_engine(database_url_debug, echo=False)
else:

View File

@@ -286,6 +286,7 @@ def myqueue(queue,function,*args,**kwargs):
job_id = str(uuid.uuid4())
kwargs['job_id'] = job_id
kwargs['jobkey'] = job_id
kwargs['timeout'] = 3600
job = queue.enqueue(function,*args,**kwargs)