You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a 11 test failures when I test the master on an old 32bit system.
Some of the fails seem genuine, e.g.
we don't say in the docs which scipy version is required, or check for the version in the test, and obviously 0.10.0 is not enough for the coordinates module
error of TypeError: data type "float128" not understood
TypeError: 'buffer' does not have the buffer interface at several places in relation with io.fits
Hmm. It's too late to do this for v1.0 I think. But maybe for v2.0 we should consider dropping support for 32-bit altogether? Would that even be feasible? In the meantime these should be fixed or worked around...
@embray - a bit unrelated question: If I run test on the modul level with --package=coordinates, they run even though decorated with @pytest.mark.skipif(str('not HAS_SCIPY')) where HAS_SCIPY is False. However they got skipped when I run them individually with -t.
Does the decorator have a memory from previously run test files?
Yes, that's what I'm doing. python setup.py test --package=coordinates
Would it be the case that the decorator acts as a lazyproperty, thus doesn't get updated? Anyway, now I think it's cleaner to define a new separate OLD_SCIPY and decorate the tests with that one, too.
Oh, nevermind. I see what it is. It's not a 32-bit issue, it's because you have Python 2.7.3. This was a bug in 2.7.3 that was fixed in 2.7.4. I don't know if I brought this up with anyone else last time I encountered it, or if I just unilaterally decided we wouldn't support 2.7.3. Hmm.... might be worth having a workaround for?
[doctest] astropy.wcs.wcs.WCS.all_world2pix (also on arm64, powerpc, ppc64el, s390x, ):
1944 ...
1945 NoConvergence: 'WCS.all_world2pix' failed to converge to the
1946 requested accuracy. After 3 iterations, the solution is
1947 diverging at least for one input point.
1948
1949 >>> # Now try to use some diverging data:
1950 >>> divradec = w.all_pix2world([[1.0, 1.0],
1951 ... [10000.0, 50000.0],
1952 ... [3.0, 1.0]], 1)
1953 >>> print(divradec)
Expected:
[ 0.99999996 0.99999997 0.99999997]
Got:
[ 0.99999997 0.99999997 0.99999997]
astropy/wcs/wcs.py:1953: DocTestFailure
which all looks not really complicated. They seem all not 32-bit related (except the errors), but appear on different 64-bit platforms as well.
Some platforms have more failures; I'll open new issues for them.
All build logs here
I've tried to fix the wcs doctest fails (the listed one is only the first, basically all the print statements are failing), but somehow the +FLOAT_CMP didn't work well with the lines that print out an array. @embray - is FLOAT_CMP supposed to work with arrays of (3, 2) shape?
The TypeError: 'buffer' does not have the buffer interface error is still occurring, but I don't see any other failures, when testing on Ubuntu 12.04 32-bit.
Activity
embray commentedon Jan 28, 2015
Hmm. It's too late to do this for v1.0 I think. But maybe for v2.0 we should consider dropping support for 32-bit altogether? Would that even be feasible? In the meantime these should be fixed or worked around...
bsipocz commentedon Jan 28, 2015
I'm fixing the first one as it's not related to 32bit or 64bit, but how we handle it if only an old version is available from scipy.
However I run into weird stuff with the testing environment which may end up in another issue if I can't figure out how to make it work.
embray commentedon Jan 28, 2015
I'll take a look at the FITS and modeling failures (the latter is probably just a precision issue).
bsipocz commentedon Jan 28, 2015
@embray - a bit unrelated question: If I run test on the modul level with
--package=coordinates, they run even though decorated with@pytest.mark.skipif(str('not HAS_SCIPY'))whereHAS_SCIPYis False. However they got skipped when I run them individually with-t.Does the decorator have a memory from previously run test files?
Could you please point me where I do it wrong? I remember a similar issue a few month ago when the
-tbehaved differently, but can't find it now.astrofrog commentedon Jan 28, 2015
@bsipocz - what if you do:
? We don't really support running tests with
py.testdirectly.bsipocz commentedon Jan 28, 2015
Yes, that's what I'm doing.
python setup.py test --package=coordinatesWould it be the case that the decorator acts as a lazyproperty, thus doesn't get updated? Anyway, now I think it's cleaner to define a new separate
OLD_SCIPYand decorate the tests with that one, too.taldcroft commentedon Jan 28, 2015
We run astropy on 32-bit systems (used in Chandra flight ops) so my vote is to maintain support for as long as practical.
1 remaining item
As reported in astropy#3380 this test was failing on 32-bit systems--…
embray commentedon Jan 29, 2015
Well, #3397 should address the one
modelingfailure. But weirdly I can't reproduce the FITS failures. Going to investigate a bit more...embray commentedon Jan 29, 2015
Oh, nevermind. I see what it is. It's not a 32-bit issue, it's because you have Python 2.7.3. This was a bug in 2.7.3 that was fixed in 2.7.4. I don't know if I brought this up with anyone else last time I encountered it, or if I just unilaterally decided we wouldn't support 2.7.3. Hmm.... might be worth having a workaround for?
olebole commentedon Jan 31, 2015
I found just one error and three failures on i386:
TypeError: data type "float128" not understood(as above) (also on armel, armhf, mipsel)test_eloc_attributes(also on arm64, see 1.0rc1&2: test_eloc_attributes() fail on i386 #3496)test_identity(also on arm64, powerpc, pp64el, s390x, see 1.0rc1&2: test_identity fails on i386, arm64, powerpc, ppc64el, s390x #3486)[doctest] astropy.wcs.wcs.WCS.all_world2pix(also on arm64, powerpc, ppc64el, s390x, ):which all looks not really complicated. They seem all not 32-bit related (except the errors), but appear on different 64-bit platforms as well.
Some platforms have more failures; I'll open new issues for them.
All build logs here
astrofrog commentedon Jan 31, 2015
I think the
float128issues was fixed in aa4fed2 (after 1.0rc1)bsipocz commentedon Jan 31, 2015
I've tried to fix the wcs doctest fails (the listed one is only the first, basically all the print statements are failing), but somehow the
+FLOAT_CMPdidn't work well with the lines that print out an array.@embray - is
FLOAT_CMPsupposed to work with arrays of (3, 2) shape?olebole commentedon Feb 2, 2015
@astrofrog With aa4fed2 the
float128issue goes away (just tested on Debian Hurd); the other problems remain ofcourse.astrofrog commentedon Jun 12, 2016
The
TypeError: 'buffer' does not have the buffer interfaceerror is still occurring, but I don't see any other failures, when testing on Ubuntu 12.04 32-bit.astrofrog commentedon Jun 12, 2016
I have a suggested fix for the buffer error: #5078
pllim commentedon Sep 3, 2016
Now that #5078 is merged, can we close this?
olebole commentedon Dec 13, 2016
I just tested with 1.3rc1, and can confirm that this is OK now, including the
WCS.all_world2pixdoctest.mhvk commentedon Dec 13, 2016
@olebole -thanks for testing! I'll close this now it is confirmed to work.