Skip to content

Numpy 2.0 compatibility #5472

@drammock

Description

@drammock

Describe what maintenance you would like added.

Over in MNE-Python we're now testing against NumPy 2.0 pre-release, and we're getting a bunch of AttributeErrors when importing Pyvista due to deprecated dtype aliases like np.float_ (which should instead be np.float64). Here's a link to the failures in our CIs:

https://github.com/mne-tools/mne-python/actions/runs/7506386773/job/20437722876?pr=12354

Links to source code.

here is one example of where np.float_ occurs:

scalars = scalars.astype(np.float_)

Pseudocode or Screenshots

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceLow-impact maintenance activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions