Skip to content

BUG: Bug with NumPy 2.0 #1318

Open
Open
@larsoner

Description

@larsoner

Seen on latest MNE-Python CIs

https://github.com/mne-tools/mne-python/actions/runs/8771722469/job/24069839865?pr=12556#step:17:14956

mne/_freesurfer.py:88: in _reorient_image
    orig_data = np.array(img.dataobj).astype(np.float32)
E   DeprecationWarning: __array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments.

This is probably a dup in some form of #1303 , but now that 2.0 is in the brief RC period (a few weeks left I think before release since RC landed a few weeks ago?) figured I'd open a proper issue to track it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions