bug fix in addmanual
This commit is contained in:
@@ -650,11 +650,11 @@ def create_row_df(r,distance,duration,startdatetime,
|
||||
|
||||
step = totalseconds/float(nr_strokes)
|
||||
|
||||
elapsed = np.arange(0,totalseconds+step,step)
|
||||
elapsed = np.arange(nr_strokes)*totalseconds/(float(nr_strokes-1))
|
||||
|
||||
dstep = distance/float(nr_strokes)
|
||||
|
||||
d = np.arange(0,distance+dstep,dstep)
|
||||
d = np.arange(nr_strokes)*distance/(float(nr_strokes-1))
|
||||
|
||||
unixtime = unixstarttime + elapsed
|
||||
|
||||
@@ -666,6 +666,7 @@ def create_row_df(r,distance,duration,startdatetime,
|
||||
else:
|
||||
power = 0
|
||||
|
||||
|
||||
df = pd.DataFrame({
|
||||
'TimeStamp (sec)': unixtime,
|
||||
' Horizontal (meters)': d,
|
||||
|
||||
Reference in New Issue
Block a user