Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdvthu opened this issue Jul 31, 2024 · 0 comments · May be fixed by #9
Open

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

mdvthu opened this issue Jul 31, 2024 · 0 comments · May be fixed by #9

Comments

@mdvthu
Copy link

mdvthu commented Jul 31, 2024

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.

@mdvthu mdvthu changed the title ndarray.pip() interface deprecated and needs to be replaced with np.ptp() ndarray.ptp() interface deprecated and needs to be replaced with np.ptp() Jul 31, 2024
mdvthu pushed a commit to mdvthu/SpineNet that referenced this issue Jul 31, 2024
@mdvthu mdvthu linked a pull request Jul 31, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant