Commit 90764ad6 authored by rmapaah's avatar rmapaah

Issue #13 sideby: The elif is changed to if to comply pylint

parent c0278c93
......@@ -123,7 +123,7 @@ def orthogonal_procrustes(fixed, moving):
raise ValueError("Registration fails as determinant < 0"
" and no singular values are close enough to zero")
elif det_X < 0 and np.any(np.isclose(svd[1], np.zeros((3, 1)))):
if det_X < 0 and (np.any(np.isclose(svd[1], np.zeros((3, 1))))):
# Implement 2a in section VI in Arun paper.
v_prime = svd[2].transpose()
......@@ -132,6 +132,7 @@ def orthogonal_procrustes(fixed, moving):
v_prime[2][2] *= -1
X = np.matmul(v_prime, svd[0].transpose())
# Compute output
R = X
tmp = p_prime.transpose() - np.matmul(R, p.transpose())
......
Markdown is supported
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