Private
Public Access
1
0

testing on video analysis creation and view

This commit is contained in:
Sander Roosendaal
2021-01-12 20:36:12 +01:00
parent 74149fa01a
commit d64ce3183c
5 changed files with 3352 additions and 12 deletions

View File

@@ -190,10 +190,6 @@ def get_video_data(w,groups=['basic'],mode='water'):
latitude = coordinates['latitude']
longitude = coordinates['longitude']
# bundle data
data = {
'boatspeed':boatspeed.values.tolist(),
@@ -201,13 +197,6 @@ def get_video_data(w,groups=['basic'],mode='water'):
'longitude':longitude.values.tolist(),
}
# metrics = {
# 'boatspeed': {
# 'unit': 'm/s',
# 'metric': 'boatspeed',
# 'name': 'Boat Speed'
# },
# }
metrics = {}
@@ -236,7 +225,7 @@ def get_video_data(w,groups=['basic'],mode='water'):
metrics = collections.OrderedDict(sorted(metrics.items()))
maxtime = coordinates['time'].max()
return data, metrics, maxtime