Private
Public Access
1
0

bug fix in addmanual

This commit is contained in:
Sander Roosendaal
2017-12-09 11:33:35 +01:00
parent 046a23bd94
commit e47ccc191f
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -3156,7 +3156,6 @@ def addmanual_view(request):
)
print name
id,message = dataprep.create_row_df(r,
distance,
duration,startdatetime,