From 70606770d0402ec15ac5268e0975b5f1fc734485 Mon Sep 17 00:00:00 2001 From: Chen Zhang Date: Tue, 28 Jul 2015 20:10:27 +0000 Subject: [PATCH] correct two typos in Quaternion class --- lib/damask/orientation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/damask/orientation.py b/lib/damask/orientation.py index 306d07d98..846976009 100644 --- a/lib/damask/orientation.py +++ b/lib/damask/orientation.py @@ -219,7 +219,7 @@ class Quaternion: abs(-self.z-other.z) < 1e-8) def __ne__(self,other): - return not __eq__(self,other) + return not self.__eq__(self,other) def __cmp__(self,other): return cmp(self.Rodrigues(),other.Rodrigues()) @@ -241,7 +241,7 @@ class Quaternion: self *= Quaternion.fromAngleAxis(angle, axis) return self - def rotateBy_Eulers(self, heading, attitude, bank): + def rotateBy_Eulers(self, eulers): self *= Quaternion.fromEulers(eulers, type) return self