From f38cb6a85fc8e48917026f7e13513b33b70ade44 Mon Sep 17 00:00:00 2001
From: Stefan Bienert <stefan.bienert@unibas.ch>
Date: Wed, 12 Feb 2020 10:16:26 +0100
Subject: [PATCH] SCHWED-4612: Get rid of some Numpy warnings, move from
 np.matrix to np.array.

---
 modules/mol/alg/pymod/qsscoring.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mol/alg/pymod/qsscoring.py b/modules/mol/alg/pymod/qsscoring.py
index f9753788c..fa838faab 100644
--- a/modules/mol/alg/pymod/qsscoring.py
+++ b/modules/mol/alg/pymod/qsscoring.py
@@ -1618,7 +1618,7 @@ def _GetAngles(Rt):
   :type Rt:  :class:`ost.geom.Mat4`
   :return: A :class:`tuple` of angles for each axis (x,y,z)
   """
-  rot = np.asmatrix(Rt.ExtractRotation().data).reshape(3,3)
+  rot = np.asarray(Rt.ExtractRotation().data).reshape(3,3)
   tx = np.arctan2(rot[2,1], rot[2,2])
   if tx < 0:
     tx += 2*np.pi
-- 
GitLab