From 63b10a328eadd2ee357c65ee6e3fb1062c134963 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 16 May 2016 14:40:59 -0300 Subject: [PATCH] Avoiding zero division in vector normalize --- invesalius/data/styles.py | 1 - 1 file changed, 0 insertions(+), 1 deletion(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index c6c4488..fd43513 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -1568,7 +1568,6 @@ class ReorientImageInteractorStyle(DefaultInteractorStyle): axis = np.cross(p0, p1) norm = np.linalg.norm(axis) if norm == 0: - print "NORM 0" return axis = axis / norm angle = np.arccos(np.dot(p0, p1)/(np.linalg.norm(p0)*np.linalg.norm(p1))) -- libgit2 0.21.2