From 0ed9af8a153d24e2a521a2c86750ac66649bb89b Mon Sep 17 00:00:00 2001 From: rmapaah Date: Mon, 4 Mar 2019 22:28:15 +0000 Subject: [PATCH] Issue #13: long lines reduced to comply pep8 --- sksurgerycore/algorithms/pivot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sksurgerycore/algorithms/pivot.py b/sksurgerycore/algorithms/pivot.py index 7883866..6c5bbee 100644 --- a/sksurgerycore/algorithms/pivot.py +++ b/sksurgerycore/algorithms/pivot.py @@ -86,7 +86,9 @@ def pivot_calibration(matrices4x4): residual_matrix = (np.dot(a_values, x_values) - b_values) residual_error = 0.0 for i in range(number_of_matrices * 3): - residual_error = residual_error + np.dot(residual_matrix[i, 0], residual_matrix[i, 0]) + residual_error = residual_error + \ + np.dot(residual_matrix[i, 0], + residual_matrix[i, 0]) residual_error = residual_error / float(number_of_matrices * 3) residual_error = np.sqrt(residual_error) @@ -100,6 +102,8 @@ def pivot_calibration(matrices4x4): output_matrix[1, 3] = x_values[1, 0] output_matrix[2, 3] = x_values[2, 0] - print("pivotCalibration=(", x_values[3, 0], ",", x_values[4, 0], ",", x_values[5, 0], "),residual=", residual_error) + print("pivotCalibration=(", x_values[3, 0], "," + , x_values[4, 0], ",", x_values[5, 0], + "),residual=", residual_error) return residual_error, x_values[0, 0], x_values[1, 0], x_values[2, 0] -- 2.24.1