From 9aa00b519af6606c42e8efc29a3aa65010f66016 Mon Sep 17 00:00:00 2001
From: ojs1g14 <ojs1g14@soton.ac.uk>
Date: Fri, 28 Sep 2018 14:27:23 +0100
Subject: [PATCH] Update core.py

---
 AmpScan/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/AmpScan/core.py b/AmpScan/core.py
index 0b20423..1b64866 100644
--- a/AmpScan/core.py
+++ b/AmpScan/core.py
@@ -341,7 +341,7 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
         >>> ang = [np.pi/2, -np.pi/4, np.pi/3]
         >>> amp.rotateAng(ang, ang='rad')
         """
-        if type(rot)==type([]):
+        if isinstance(rot, (tuple, list, np.ndarray)):
             R = self.rotMatrix(rot, ang)
             self.rotate(R, norms)
         else:
-- 
GitLab