-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix deprecation of setting shape on a numpy array in 2.5+ #13585
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
Fix deprecation of setting shape on a numpy array in 2.5+ #13585
Conversation
for more information, see https://pre-commit.ci
|
These should all have |
|
I was wondering if I should have the |
|
Docstring: |
|
np.reshape always tried to create a view and if it couldn't it would copy. In code I wrote setting .shape was just a shortcut to |
|
Alright, I'll switch to explicitly raising if we can't get a view. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
@larsoner Should be good this time- with also PRs in |
|
Soo.. |
|
Yaaay 🫠 Thanks for taking care of this @mscheltienne ! |
Fixes this deprecation across the code base, observed in
numpy2.5+ (pre-release) version.CI workflow showing the failure: https://github.com/mne-tools/mne-lsl/actions/runs/20914667465/job/60085466508?pr=497