diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-11-04 14:27:54 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-11-04 14:27:54 -0700 |
commit | 615e66b19defa2d9fbfa94d6118fb6243ae90ffe (patch) | |
tree | 5b6453ec73781d05643a278800a413e9e9651c59 | |
parent | 2bc5cb9a19027704d13f06b02c0bbd07e6aebd29 (diff) | |
parent | cbfd9370ee273ef8f7694d1c689649e98d8ee08b (diff) | |
download | numpy-615e66b19defa2d9fbfa94d6118fb6243ae90ffe.tar.gz |
Merge pull request #6621 from charris/fix-swig-make_fortran
BUG: Fix swig make_fortran function.
-rw-r--r-- | doc/release/1.10.2-notes.rst | 2 | ||||
-rw-r--r-- | tools/swig/numpy.i | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/release/1.10.2-notes.rst b/doc/release/1.10.2-notes.rst index efd57d927..31a793420 100644 --- a/doc/release/1.10.2-notes.rst +++ b/doc/release/1.10.2-notes.rst @@ -32,6 +32,7 @@ Issues Fixed * gh-6575 BUG: Split produces empty arrays with wrong number of dimensions * gh-6590 Fortran Array problem in numpy 1.10. * gh-6602 Random __all__ missing choice and dirichlet. +* gh-6618 NPY_FORTRANORDER in make_fortran() in numpy.i Merged PRs ========== @@ -67,6 +68,7 @@ The following PRs in master have been backported to 1.10.2 * gh-6596 BUG: Fix swig for relaxed stride checking. * gh-6606 DOC: Update 1.10.2 release notes. * gh-6614 BUG: Add choice and dirichlet to numpy.random.__all__. +* gh-6621 BUG: Fix swig make_fortran function. Initial support for mingwpy was reverted as it was causing problems for non-windows builds. diff --git a/tools/swig/numpy.i b/tools/swig/numpy.i index 11fcd42fe..67a519e6d 100644 --- a/tools/swig/numpy.i +++ b/tools/swig/numpy.i @@ -295,7 +295,7 @@ Py_INCREF(array_descr(ary)); result = (PyArrayObject*) PyArray_FromArray(ary, array_descr(ary), - NPY_FORTRANORDER); + NPY_ARRAY_F_CONTIGUOUS); *is_new_object = 1; } return result; |