Skip to content

Issues for numpy 2 and core package update #1617

Description

@jeanconn

Functional testing

  • Confirm that kadi / django event database update written by ska3-hope is readable with ska3-flight
  • Confirm xija_gui_fit works

Lessons learned

Numpy copy=False

Problems resulting in ValueError: Unable to avoid copy while creating an array as requested.

In general replace numpy copy=False with copy=None or remove it. Or else replace with np.asarray(...). See https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.

np.in1d is deprecated

Replace np.in1d with np.isin.

change in np.broadcast_arrays

The return type of np.broadcast_arrays used to be a list, and in numpy 2 it is a tuple. One fix is to just cast the output to a list.

change in numpy repr

repr() now includes the numpy type in the output string for numpy types.

Activity

  1. added this to the 2026.1 milestone on Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions