From e32f224d12caed7caeae27571cf12def25192e0f Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 18 Jan 2021 10:34:42 -0500 Subject: [PATCH] elbow.py : In find_elbow() change default 'pointsPerLine' to 5. --- elbow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elbow.py b/elbow.py index 81d03fc..5f0f7e6 100644 --- a/elbow.py +++ b/elbow.py @@ -29,7 +29,7 @@ def fit_points_to_reference( usL, dbL, usRefL, dbRefL ): return dbV -def find_elbow( usL, dbL, pointsPerLine=10 ): +def find_elbow( usL, dbL, pointsPerLine=5 ): ppl_2 = int(pointsPerLine/2) dL = [] @@ -58,7 +58,7 @@ def find_elbow( usL, dbL, pointsPerLine=10 ): i += 1 # find the max angle - i = np.argmax( dL ) + i = np.argmax( dL ) # return the x,y coordinate of the first data point of the second line return (usL[i+ppl_2],dbL[i+ppl_2])