atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

Remove a deprecation warning in numpy 1.25 #626

Closed lfarv closed 11 months ago

lfarv commented 1 year ago

Lattice.linopt* emits a deprecation warning when running with numpy 1.25. This is noticeable when running the tests. This results from a bug: using an array of shape (1,) instead of a scalar. This has no consequence on the results but is corrected here.