Skip to content

Commit

Permalink
remove a deprecation warning in numpy 1.25
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarv committed Jul 5, 2023
1 parent 5cafb95 commit 08c5969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyat/at/physics/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08c5969

Please sign in to comment.