From 637a37b6dd5b43884b0a935040b4786eec063c68 Mon Sep 17 00:00:00 2001 From: John Henry Beale Date: Thu, 11 Dec 2025 14:56:21 +0100 Subject: [PATCH] updated np.mat to np.asmatrix --- geometry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.py b/geometry.py index 4186f34..a23d5b0 100755 --- a/geometry.py +++ b/geometry.py @@ -300,14 +300,14 @@ class geometry: # if zoom=None, the last zoom value is used if zoom is not None: self.interp_zoom(zoom) - return np.asarray(self._pix2pos*np.mat(p).T).ravel() + return np.asarray(self._pix2pos*np.asmatrix(p).T).ravel() def pos2pix(self, p, zoom=None): # returns the pixel p(x,y) of the position m(x,y) in meter relative to the optical center at a given zoom level # if zoom=None, the last zoom value is used if zoom is not None: self.interp_zoom(zoom) - return np.asarray(self._pix2pos.I*np.mat(p).T).ravel() + return np.asarray(self._pix2pos.I*np.asmatrix(p).T).ravel() def optctr2xray(self): # returns the vector m(x,y) of the optical center to the xray