[xmds2] 11/12: d/p/indexing-with-scalars.patch: New patch

Rafael Laboissiere rafael at debian.org
Sun Jan 15 20:49:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

rafael pushed a commit to branch master
in repository xmds2.

commit 63002906f0b9ebec258ea89f11c3ac1dd772b409
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Sun Jan 15 18:04:57 2017 -0200

    d/p/indexing-with-scalars.patch: New patch
---
 debian/patches/indexing-with-scalars.patch | 17 +++++++++++++++++
 debian/patches/series                      |  2 ++
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/indexing-with-scalars.patch b/debian/patches/indexing-with-scalars.patch
new file mode 100644
index 0000000..e4af097
--- /dev/null
+++ b/debian/patches/indexing-with-scalars.patch
@@ -0,0 +1,17 @@
+Description: Insures that index values in reshape() are integers
+ This prevents TypeErrors with NumPy 1.12.0.
+Author: Rafael Laboissiere <rafael at debian.org>
+Forwarded: https://sourceforge.net/p/xmds/mailman/message/35605494/
+Last-Update: 2017-01-15
+
+--- xmds2-2.2.2+dfsg.orig/xpdeint/XSILFile.py
++++ xmds2-2.2.2+dfsg/xpdeint/XSILFile.py
+@@ -117,7 +117,7 @@ class XSILDataBinary(XSILData):
+     
+     for independentVariable in self.independentVariables:
+       size = numpy.fromfile(fd, dtype=ulongDType, count=1)
+-      independentGeometry.append(size)
++      independentGeometry.append(numpy.asscalar(size))
+       assert size == independentVariable['length']
+       a = numpy.fromfile(fd, dtype=floatDType, count=size)
+       independentVariable['array'] = a
diff --git a/debian/patches/series b/debian/patches/series
index 3cc1361..2d1a305 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,5 @@
 revision-number-as-deb-pkg.patch
 spelling-fix-in-manpage.patch
 pyparsing-dict.patch
+indexing-with-scalars.patch
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xmds2.git



More information about the debian-science-commits mailing list