bug fix & interpolation
This commit is contained in:
@@ -287,6 +287,11 @@ def get_time_course(ws,course):
|
||||
|
||||
rowdata['time'] = rowdata['time']-rowdata.ix[0,'time']
|
||||
# we may want to expand the time (interpolate)
|
||||
rowdata['dt'] = rowdata['time'].apply(
|
||||
lambda x: timedelta(seconds=x)
|
||||
)
|
||||
rowdata = rowdata.resample('100ms',on='dt').mean()
|
||||
rowdata = rowdata.interpolate()
|
||||
|
||||
polygons = GeoPolygon.objects.filter(course=course)
|
||||
paths = []
|
||||
|
||||
Reference in New Issue
Block a user