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 = []
|
||||
|
||||
@@ -13627,7 +13627,6 @@ def virtualevent_create_view(request):
|
||||
course=geocourse,
|
||||
comment=comment,
|
||||
sessiontype = 'coursetest',
|
||||
sessionvalue = sessionvalue,
|
||||
timezone=timezone_str,
|
||||
evaluation_closure=evaluation_closure,
|
||||
registration_closure=registration_closure,
|
||||
|
||||
Reference in New Issue
Block a user