Commit 25cf4726 authored by Martin Schorb's avatar Martin Schorb
Browse files

fix clip for 3D

parent 993218fa
...@@ -54,8 +54,9 @@ def new_matchtrial(matchID, urls, clippos='LEFT', owner=params.mt_owner, ): ...@@ -54,8 +54,9 @@ def new_matchtrial(matchID, urls, clippos='LEFT', owner=params.mt_owner, ):
matchtrial['stats'] = {} matchtrial['stats'] = {}
if clippos == 'NO CLIP': if clippos == 'NO CLIP':
matchtrial['parameters']['featureAndMatchParameters'].pop('pClipPosition') if 'pClipPosition' in matchtrial['parameters']['featureAndMatchParameters'].keys():
matchtrial['parameters']['featureAndMatchParameters'].pop('clipPixels') matchtrial['parameters']['featureAndMatchParameters'].pop('pClipPosition')
matchtrial['parameters']['featureAndMatchParameters'].pop('clipPixels')
else: else:
matchtrial['parameters']['featureAndMatchParameters']['pClipPosition'] = clippos matchtrial['parameters']['featureAndMatchParameters']['pClipPosition'] = clippos
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment