[ismrmrd] 209/281: Restoring compatibility with NumPy 1.6 again
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.
commit ca9e3cacaca040b95a0f0f6656990f2f31bca44b
Author: Ghislain Vaillant <ghisvail at gmail.com>
Date: Mon Mar 3 14:36:24 2014 +0000
Restoring compatibility with NumPy 1.6 again
Signed-off-by: Joseph Naegele <joseph.naegele at gmail.com>
---
bindings/python/ismrmrd_python.i | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/bindings/python/ismrmrd_python.i b/bindings/python/ismrmrd_python.i
index e577e81..c564a1f 100644
--- a/bindings/python/ismrmrd_python.i
+++ b/bindings/python/ismrmrd_python.i
@@ -7,6 +7,12 @@
#include "ismrmrd_hdf5.h"
#include "numpy/arrayobject.h"
+// for compatibility with Numpy version <= 1.6
+#define NUMPY17_API 0x00000007
+#if NPY_FEATURE_VERSION < NUMPY17_API
+#define NPY_ARRAY_FARRAY NPY_FARRAY
+#endif
+
#define SWIG_FILE_WITH_INIT
/* exception helpers */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git
More information about the debian-science-commits
mailing list