From 1ac8cba562a562843eb320cd23dcd0ab48a478ce Mon Sep 17 00:00:00 2001 From: Laurent Farvacque Date: Mon, 31 Jul 2023 14:30:29 +0200 Subject: [PATCH] Remove a deprecation warning in numpy 1.25 (#626) remove a deprecation warning in numpy 1.25 --- pyat/at/physics/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyat/at/physics/linear.py b/pyat/at/physics/linear.py index 19ba35215..b4ee926c5 100644 --- a/pyat/at/physics/linear.py +++ b/pyat/at/physics/linear.py @@ -417,7 +417,7 @@ def unwrap(mu): ('closed_orbit', numpy.float64, (6,)), (mname, numpy.float64, (2*dms, 2*dms)), ('s_pos', numpy.float64)] - data0 = (d0, orb0, mt, get_s_pos(ring, len(ring))) + data0 = (d0, orb0, mt, get_s_pos(ring, len(ring))[0]) datas = (ds, orbs, ms, spos) if get_w: dtype = dtype + _W_DTYPE