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

refine.py works, chooses positive or negative threshold, whichever sooner

parent 38a9a46c
No related branches found
No related tags found
1 merge request!98Draft: WIP Positive/negative standard deviation refinement
......@@ -98,8 +98,7 @@ def refine_calculate(event, params, window, refined_gps=None, threshold=None):
if inds_above.any() or inds_below.any():
if inds_above.any() and inds_below.any():
ind_list = [[np.min(inds_above), upper_threshold],
[np.min(inds_below), lower_threshold]
]
[np.min(inds_below), lower_threshold]]
ind_list.sort()
ind = ind_list[0][0]
threshold = ind_list[0][1]
......
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