Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2019-03-07 14:27:40 +01:00
parent 9f73e37297
commit f53a2a22ee
5 changed files with 38 additions and 18 deletions

View File

@@ -127,23 +127,23 @@ def createunderarmourworkoutdata(w):
d = row.df.loc[:,'cum_dist'].values
d[0] = d[1]
t = t.astype(float)
t = t.astype(float).tolist()
d = d.astype(int)
spm = row.df[' Cadence (stokes/min)'].astype(int)
d = d.astype(int).tolist()
spm = row.df[' Cadence (stokes/min)'].astype(int).tolist()
spm[0] = spm[1]
hr = row.df[' HRCur (bpm)'].astype(int)
hr = row.df[' HRCur (bpm)'].astype(int).tolist()
speed = row.df[' AverageBoatSpeed (m/s)']
speed = speed.replace(np.inf,0)
speed = speed.replace(np.inf,0).tolist()
haslatlon=1
try:
lat = row.df[' latitude']
lon = row.df[' longitude']
lat = row.df[' latitude'].tolist()
lon = row.df[' longitude'].tolist()
if not lat.std() and not lon.std():
haslatlon = 0
except KeyError: