From 790eae5c3bc9e403eb39c3371f65e8e35c2a10aa Mon Sep 17 00:00:00 2001 From: John Henry Beale Date: Fri, 15 May 2026 09:54:29 +0200 Subject: [PATCH] np 1.25 depreciation warning occurred during fit-grid to fiducials. Implimented fix for error message --- swissmx.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/swissmx.py b/swissmx.py index 8978e8f..cb7a1ce 100755 --- a/swissmx.py +++ b/swissmx.py @@ -2228,7 +2228,8 @@ object settings: trf[0,1]/trf[1,1], 1, 0, 0, 0, 1) go.setTransform(tr) - go.setPos(trf[:,2]) + pos=np.asarray(trf[:,2]).ravel() # bug fix deprecation of np 1.25 + go.setPos(pos[0],pos[1]) # bug fix deprecation of np 1.25 #go.setSize((1,1)) sz=(trf[0,0],trf[1,1]) go.setSize(sz) @@ -2245,7 +2246,8 @@ object settings: trf[0, 1]/trf[1, 1], 1, 0, 0, 0, 1) go.setTransform(tr) - go.setPos(trf[:, 2]) + pos=np.asarray(trf[:,2]).ravel() # bug fix deprecation of np 1.25 + go.setPos(pos[0],pos[1]) # bug fix deprecation of np 1.25 # go.setSize((1,1)) sz=(trf[0, 0], trf[1, 1]) go.setSize(sz)