# Patch fixing upstream issue n°54.
authorCharles Plessy <plessy@debian.org>
Tue, 1 Feb 2011 09:27:21 +0000 (18:27 +0900)
committerCharles Plessy <plessy@debian.org>
Thu, 3 Feb 2011 04:00:19 +0000 (13:00 +0900)
Description: pytype not defined for FloatType tags
URL: http://code.google.com/p/pysam/issues/detail?id=54

debian/patches/issue-54 [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/issue-54 b/debian/patches/issue-54
new file mode 100644 (file)
index 0000000..81b16ff
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/pysam/csamtools.pyx b/pysam/csamtools.pyx
+index e94e0e6..39e136b 100644
+--- a/pysam/csamtools.pyx
++++ b/pysam/csamtools.pyx
+@@ -1599,7 +1599,7 @@ cdef class AlignedRead:
+                 for pytag, value in tags:
+                     t = type(value)
+                     if t == types.FloatType:
+-                        fmt = "<cccf"
++                        fmt, pytype = "<cccf", 'f'
+                     elif t == types.IntType:
+                         if value < 0:
+                             if value >= -127: fmt, pytype = "<cccb", 'c'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..9bc2b4c
--- /dev/null
@@ -0,0 +1 @@
+issue-54