[Debian-astro-maintainers] Bug#1026012: astropy-healpix: FTBFS because of failing test suite
Timo Röhling
roehling at debian.org
Tue Dec 13 08:26:05 GMT 2022
Source: astropy-healpix
Version: 0.6-1
Severity: serious
Tags: ftbfs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear maintainers,
the new python-hypothesis 6.60 apparently exposed a bug in your package,
causing it to FTBFS and fail the autopkgtest.
Relevant excerpt from the build log:
=================================== FAILURES ===================================
_________________________________ test_vec2pix _________________________________
@given(nside_pow=integers(0, 29), nest=booleans(),
> x=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda x: abs(x) > 1e-10),
y=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda y: abs(y) > 1e-10),
z=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda z: abs(z) > 1e-10))
astropy_healpix/tests/test_healpy.py:116:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
nside_pow = 2, x = 1.0, y = 1.0, z = 0.5, nest = False
@given(nside_pow=integers(0, 29), nest=booleans(),
x=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda x: abs(x) > 1e-10),
y=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda y: abs(y) > 1e-10),
z=floats(-1, 1, allow_nan=False, allow_infinity=False).filter(lambda z: abs(z) > 1e-10))
@settings(max_examples=2000, derandomize=True, deadline=None)
def test_vec2pix(nside_pow, x, y, z, nest):
nside = 2 ** nside_pow
ipix1 = hp_compat.vec2pix(nside, x, y, z, nest=nest)
ipix2 = hp.vec2pix(nside, x, y, z, nest=nest)
> assert ipix1 == ipix2
E assert 42 == 58
E Falsifying example: test_vec2pix(
E nside_pow=2, nest=False, x=1.0, y=1.0, z=0.5,
E )
astropy_healpix/tests/test_healpy.py:124: AssertionError
_________________________________ test_vec2ang _________________________________
@given(vectors=arrays(float, (3,), elements=floats(-1, 1)).filter(not_at_origin),
> lonlat=booleans(), ndim=integers(0, 4))
astropy_healpix/tests/test_healpy.py:210:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
vectors = array([ 1.00000000e+00, -2.22044605e-16, 1.00000000e+00])
lonlat = False, ndim = 0
@given(vectors=arrays(float, (3,), elements=floats(-1, 1)).filter(not_at_origin),
lonlat=booleans(), ndim=integers(0, 4))
@settings(max_examples=500, derandomize=True, deadline=None)
def test_vec2ang(vectors, lonlat, ndim):
vectors = np.broadcast_to(vectors, (2,) * ndim + (3,))
theta1, phi1 = hp_compat.vec2ang(vectors, lonlat=lonlat)
theta2, phi2 = hp.vec2ang(vectors, lonlat=lonlat)
# Healpy sometimes returns NaNs for phi (somewhat incorrectly)
phi2 = np.nan_to_num(phi2)
assert_allclose(theta1, theta1, atol=1e-10)
> assert_allclose(phi1, phi2, atol=1e-10)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=1e-10
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference: 6.283185307179586
E Max relative difference: 1.0
E x: array([ 0.])
E y: array([ 6.283185])
E Falsifying example: test_vec2ang(
E vectors=array([ 1.00000000e+00, -2.22044605e-16, 1.00000000e+00]),
E lonlat=False,
E ndim=0,
E )
astropy_healpix/tests/test_healpy.py:219: AssertionError
=============================== warnings summary ===============================
astropy_healpix/conftest.py:50
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astropy-healpix/build/astropy_healpix/conftest.py:50: AstropyDeprecationWarning: The enable_deprecations_as_exceptions function is deprecated and may be removed in a future version.
Use https://docs.pytest.org/en/stable/warnings.html instead.
enable_deprecations_as_exceptions()
.pybuild/cpython3_3.10_astropy-healpix/build/astropy_healpix/tests/test_core.py::test_interpolate_bilinear_invalid
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astropy-healpix/build/astropy_healpix/core.py:605: RuntimeWarning: invalid value encountered in bilinear_interpolation_weights
result = _core.bilinear_interpolation_weights(lon, lat, nside)
.pybuild/cpython3_3.10_astropy-healpix/build/astropy_healpix/tests/test_core.py::test_interpolate_bilinear_invalid
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_astropy-healpix/build/astropy_healpix/core.py:570: RuntimeWarning: invalid value encountered in ring_to_nested
return _core.ring_to_nested(ring_index, nside)
- -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED astropy_healpix/tests/test_healpy.py::test_vec2pix - assert 42 == 58
FAILED astropy_healpix/tests/test_healpy.py::test_vec2ang - AssertionError:
================== 2 failed, 115 passed, 3 warnings in 47.44s ==================
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmOYNxgACgkQ+C8H+466
LVkNCwwAnQYr+mQEDFPhKBpa0ahy0qaOP305ajiBlZ6Z/ZC3g44Qj3aQOHGBEE6J
+k62S/snTN/lruybHMdLSn+vlp1rWZxtS+rxnMEaaNjxqYge3C7VA57FBlO80r3U
RQXtOmiTFnkxRPHl8ba/lW3bYlh4TLNsgJ8A8lxapXC3zANR7TVNQPJQBNhkDMHG
tAO1Be4BYiRoS5in6mP1qFF/L0m1ZxOayGxnp825/mFAOvXBOjmi0jkeecgFwefk
HwTP5D0KH5mI7EmnyeDT8XP2tZX5ZPH7V3PbNnrrKn7zyN+gXCCoNeR/C/sbtpeN
TnAhbxx8yBBHZ96c0fXT8csJB2f/LCMhU3y3MFjm/F/HNCISNejXeAmZO9BXPAtL
vS7LM39/MVES3uozh5M/WRd5q5Ba45sHvj0SBeIvhWx4v52Q/pu8xL2tbwn0jAzZ
yDg0QNpaeHojHFEMJ145DVbf3UCZ3eKQndPowVGYHxkQ6q7ZW0IuDFaCYi3M7CRb
bJ1EICar
=O5xc
-----END PGP SIGNATURE-----
More information about the Debian-astro-maintainers
mailing list