Skip to content

ndarray.ptp() interface deprecated and needs to be replaced with np.ptp() #8

Description

@mdvthu

To recreate, create a fresh install, using latest libraries:

python3 -m venv venv
. ./venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements
jupyter lab

open tutorials/01-quickstart.ipynb in jupyter lab

Run all cells. Cell 3 fails with:
AttributeError: ptp was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions