Skip to content
Snippets Groups Projects
Commit 5d6b5a0f authored by Camilla Compton's avatar Camilla Compton
Browse files

refine: comment out changing thresh to min/max data value if no crossing

parent b5368a2f
No related branches found
No related tags found
1 merge request!98Draft: WIP Positive/negative standard deviation refinement
......@@ -76,10 +76,14 @@ def refine_calculate(event, params, window, refined_gps=None, threshold=None):
# lock loss threshold is when moves past % threshold of std
threshold = lock_stdd * params['THRESHOLD'] + lock_mean
""" I dont think this part is useful and may confuse pos/neg check and is
already sorted out below at no threshold crossings, unable to resolve time"
if params['THRESHOLD'] > 0:
threshold = min(threshold, max(buf.data))
else:
threshold = max(threshold, min(buf.data))
"""
logging.info("threshold: {}".format(threshold))
# if the mean is less than the nominal full lock value then abort,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment