better filtering
This commit is contained in:
@@ -136,7 +136,7 @@ def get_video_data(w,groups=['basic'],mode='water'):
|
|||||||
|
|
||||||
|
|
||||||
df.set_index(pd.to_timedelta(df['time'],unit='s'),inplace=True)
|
df.set_index(pd.to_timedelta(df['time'],unit='s'),inplace=True)
|
||||||
df2 = df.resample('1s').mean().interpolate()
|
df2 = df.resample('1s').first().fillna(method='ffill')
|
||||||
if 'pace' in columns:
|
if 'pace' in columns:
|
||||||
df2['pace'] = df2['pace']/1000.
|
df2['pace'] = df2['pace']/1000.
|
||||||
p = df2['pace']
|
p = df2['pace']
|
||||||
|
|||||||
@@ -2956,15 +2956,12 @@ def interactive_chart_video(videodata):
|
|||||||
|
|
||||||
data = zip(time,spm)
|
data = zip(time,spm)
|
||||||
|
|
||||||
data2 = []
|
data2 = "["
|
||||||
|
|
||||||
for t,s in data:
|
for t,s in data:
|
||||||
data2.append(
|
data2 += "{x: %s, y: %s}, " % (t,s)
|
||||||
{
|
|
||||||
'x':t,
|
data2 = data2[:-2] + "]"
|
||||||
'y':s,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
markerpoint = {
|
markerpoint = {
|
||||||
'x': time[0],
|
'x': time[0],
|
||||||
|
|||||||
Reference in New Issue
Block a user