summaryrefslogtreecommitdiff
path: root/dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-02-18 20:10:14 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-02-18 20:10:43 +0000
commit3764c9756bec480696e0ebbb7e9d6421d81da933 (patch)
tree10d28de6ea8e8144a0759a71ef08e429eb1a631b /dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch
parent1a6ccc8cf7cea82ab69307af3966184380113e6c (diff)
downloadgentoo-3764c9756bec480696e0ebbb7e9d6421d81da933.tar.gz
gentoo-3764c9756bec480696e0ebbb7e9d6421d81da933.tar.bz2
gentoo-3764c9756bec480696e0ebbb7e9d6421d81da933.zip
dev-python/astropy: version bump
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch')
-rw-r--r--dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch b/dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch
new file mode 100644
index 000000000000..efb12737c19b
--- /dev/null
+++ b/dev-python/astropy/files/astropy-1.1.1-fix-wcs.patch
@@ -0,0 +1,15 @@
+Author: Kacper Kowalik <xarthisius.kk@gmail.com>
+Description: Copy keys to a list, since orignal map is modified
+Url: https://github.com/astropy/astropy/issues/4477
+Bug: https://github.com/astropy/astropy/issues/4460
+--- a/astropy/wcs/wcs.py
++++ b/astropy/wcs/wcs.py
+@@ -988,7 +988,7 @@
+ """
+ # Never pass SIP coefficients to wcslib
+ # CTYPE must be passed with -SIP to wcslib
+- for key in (m.group() for m in map(SIP_KW.match, header.keys())
++ for key in (m.group() for m in map(SIP_KW.match, list(header))
+ if m is not None):
+ del header[key]
+