-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
np.copy should have order='K' by default for backward compatibility #469
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
Milestone
Comments
@njsmith I believe you fixed this. |
The current master does:
So I think it's fixed. |
The 1.7.x branch still says however:
So I need to find the commit which fixed it and backport it. |
So I ran:
with #! /bin/sh
set -e
python setup.py install
cd /tmp/a
python a.py and import sys
import numpy as np
a = np.ones((10, 10))
print np.copy(a.T).flags
if np.copy(a.T).flags["F_CONTIGUOUS"] == True:
print "bisect bad"
sys.exit(1)
else:
print "bisect good"
sys.exit(0) and it gave 1a71edc as the first "bad" commit (introduced in #476). Pretty cool! I am going to backport it now. |
Backported in #2839. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In current tree:
In numpy 1.6
I suggest to put "order='K'" by default in numpy 1.7 (maybe with a FutureWarning) to ensure backward compat.
The text was updated successfully, but these errors were encountered: