Private
Public Access
1
0

moving save routine to dataprepnodjango

This commit is contained in:
Sander Roosendaal
2018-06-28 10:07:34 +02:00
parent 608a773566
commit 5eb2edc60f
3 changed files with 16 additions and 10 deletions

View File

@@ -135,6 +135,15 @@ def rdata(file,rower=rrower()):
from utils import totaltime_sec_to_string
def create_strava_stroke_data_db(workoutid,df,csvfilename,debug=False):
df.sort_values(by='TimeStamp (sec)',ascending=True)
res = df.to_csv(csvfilename+'.gz',index_label='index',compression='gzip')
data = dataprep(df,id=workoutid,bands=False,debug=debug)
return data
# Creates C2 stroke data
def create_c2_stroke_data_db(