diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2016-12-28 23:42:26 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2016-12-28 23:44:41 +0000 |
commit | 3c4b373497aeea66ccd19209c3395b306a880c7e (patch) | |
tree | 23f2334be0364a31c03a92e03b878795159f659f /dev-python/astropy/files/astropy-1.1.2-cfitsio-338.patch | |
parent | sci-astronomy/sofa_c: version bump (diff) | |
download | gentoo-3c4b373497aeea66ccd19209c3395b306a880c7e.tar.gz gentoo-3c4b373497aeea66ccd19209c3395b306a880c7e.tar.bz2 gentoo-3c4b373497aeea66ccd19209c3395b306a880c7e.zip |
dev-python/astropy: version bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-python/astropy/files/astropy-1.1.2-cfitsio-338.patch')
-rw-r--r-- | dev-python/astropy/files/astropy-1.1.2-cfitsio-338.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/dev-python/astropy/files/astropy-1.1.2-cfitsio-338.patch b/dev-python/astropy/files/astropy-1.1.2-cfitsio-338.patch deleted file mode 100644 index d4a8fa072c5d..000000000000 --- a/dev-python/astropy/files/astropy-1.1.2-cfitsio-338.patch +++ /dev/null @@ -1,35 +0,0 @@ -Author: Ole Streicher <olebole@debian.org> -Description: Make TFORMx check more flexible - The maximal column length in cfitsio changed between version 3370 and 3380. - This patch checks their syntax, without a specific length. -Bug: https://github.com/astropy/astropy/issues/4646 ---- a/astropy/io/fits/tests/test_image.py -+++ b/astropy/io/fits/tests/test_image.py -@@ -4,6 +4,7 @@ - - import math - import os -+import re - import time - import warnings - -@@ -1010,7 +1011,7 @@ - hdu.writeto(self.temp('test.fits')) - - with fits.open(self.temp('test.fits')) as hdul: -- assert (hdul['SCI'].data == cube).all() -+ assert np.abs(hdul['SCI'].data - cube).max() < 1./15. - - def test_subtractive_dither_seed(self): - """ -@@ -1265,8 +1266,8 @@ - - with fits.open(self.temp('test.fits'), - disable_image_compression=True) as h: -- assert h[1].header['TFORM1'] == '1PB(30)' -- assert h[1].header['TFORM2'] == '1PB(359)' -+ assert re.match(r'^1PB\(\d+\)$', h[1].header['TFORM1']) -+ assert re.match(r'^1PB\(\d+\)$', h[1].header['TFORM2']) - - def test_compression_update_header(self): - """Regression test for |