Private
Public Access
1
0

untested POST version of stroke_data API

This commit is contained in:
Sander Roosendaal
2016-11-25 20:31:44 +01:00
parent 88da49a00e
commit 3ef5c40be4
4 changed files with 91 additions and 3 deletions

View File

@@ -84,6 +84,14 @@ def rdata(file,rower=rrower()):
return res
def testdata(time,distance,pace,spm):
t1 = np.issubdtype(time,np.number)
t2 = np.issubdtype(distance,np.number)
t3 = np.issubdtype(pace,np.number)
t4 = np.issubdtype(spm,np.number)
return t1 and t2 and t3 and t4
def getrowdata_db(id=0):
data = read_df_sql(id)
data['pace'] = data['pace']/1.0e6