pyamrex icon indicating copy to clipboard operation
pyamrex copied to clipboard

Fix NumPy 2.0 Warning, Require 2.0+

Open ax3l opened this issue 7 months ago • 1 comments

Fix #426: np.array(..., copy=False) to np.asarray(..., copy=False).

  • https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword
  • https://numpy.org/doc/2.2/reference/generated/numpy.asarray.html

Bump requirements to NumPy 2.0+: we so far supported NumPy 1 & 2 in parallel, but NumPy 2 is widely enough deployed to require it now.

ax3l avatar Mar 18 '25 18:03 ax3l