TST: CircleCI 32-bit tests broken with Numpy 1.17.0
See original GitHub issueUPDATE: Remember to undo #9076 when fixing this.
CircleCI 32-bit tests broken on master
when it started picking up Numpy 1.17 instead of 1.16.
Used to pass: https://circleci.com/gh/astropy/astropy/38530
Started failing (and still failing): https://circleci.com/gh/astropy/astropy/38549
_______________________ test_roundtrip_sky_rotaion[inp0] _______________________
[gw0] linux -- Python 3.6.8 /opt/python/cp36-cp36m/bin/python
inp = (0, 0)
@pytest.mark.parametrize(('inp'), [(0, 0), (40, -20.56), (21.5, 45.9)])
def test_roundtrip_sky_rotaion(inp):
lon, lat, lon_pole = 42, 43, 44
n2c = models.RotateNative2Celestial(lon, lat, lon_pole)
c2n = models.RotateCelestial2Native(lon, lat, lon_pole)
assert_allclose(n2c.inverse(*n2c(*inp)), inp, atol=1e-13)
> assert_allclose(c2n.inverse(*c2n(*inp)), inp, atol=1e-13)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=1e-13
E
E Mismatch: 50%
E Max absolute difference: 360.
E Max relative difference: inf
E x: array([3.600000e+02, 7.083257e-15])
E y: array([0, 0])
astropy/modeling/tests/test_rotations.py:45: AssertionError
_______ [doctest] astropy.stats.info_theory.bayesian_info_criterion_lsq ________
[gw2] linux -- Python 3.6.8 /opt/python/cp36-cp36m/bin/python
171 >>> g_init = models.Gaussian1D(amplitude=1., mean=0, stddev=1.)
172 >>> fit_g = fitting.LevMarLSQFitter()
173 >>> g = fit_g(g_init, x, y)
174 >>> # Compute the mean squared errors
175 >>> ssr_t = np.sum((t(x) - y)*(t(x) - y))
176 >>> ssr_g = np.sum((g(x) - y)*(g(x) - y))
177 >>> # Compute the bics
178 >>> bic_t = bayesian_info_criterion_lsq(ssr_t, 4, x.shape[0])
179 >>> bic_g = bayesian_info_criterion_lsq(ssr_g, 3, x.shape[0])
180 >>> bic_t - bic_g # doctest: +FLOAT_CMP
Expected:
30.644474706065466
Got:
31.11155402550662
/tmp/astropy-test-pu67bw6x/lib/python3.6/site-packages/astropy/stats/info_theory.py:180: DocTestFailure
cc @mhvk (in case you know what in Numpy might have caused regression in 32-bit)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
CircleCI test failures on main branch. · Issue #20390 - GitHub
The CircleCI log shows that the main branch of numpy is successfully built and installed. The problem is that the freshly installed numpy...
Read more >Release Notes — NumPy v1.17 Manual
This release contains a number of fixes for bugs reported against NumPy 1.17.0 along with a few documentation and build improvements.
Read more >Release Notes — NumPy v1.17 Manual
The feature was available for testing with NumPy 1.16 if appropriate environment variables are set, but is now always enabled.
Read more >Testing for specific python and numpy versions
I want to test multiple python and numpy versions using miniconda python. I tried to use different python images but it uses only...
Read more >Diff - xinyu7030/numpy - Gitiles - GerritHub.io
We test NumPy against all these versions every time we merge code to -master. ... 1.17.0 had an incorrect check when determining whether...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We also see this on the daily wheels building job here: https://travis-ci.org/MacPython/astropy-wheels/jobs/599235728#L1329
LTS is changing in a few months, so I am okay to close.