[Debian-astro-maintainers] Bug#1000613: gammapy FTBFS on !amd64: test failures

Adrian Bunk bunk at debian.org
Thu Nov 25 21:21:28 GMT 2021


Source: gammapy
Version: 0.19-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/logs.php?pkg=gammapy&ver=0.19-1

...
=================================== FAILURES ===================================
______________________________ test_binary_erode _______________________________

    def test_binary_erode():
        geom = WcsGeom.create(binsz=0.02, width=2 * u.deg)
        mask = geom.region_mask("icrs;circle(0, 0, 1)")
    
        mask = mask.binary_erode(width=0.2 * u.deg, kernel="disk", use_fft=False)
        assert_allclose(mask.data.sum(), 4832)
    
        mask = mask.binary_erode(width=0.2 * u.deg, kernel="box", use_fft=True)
>       assert_allclose(mask.data.sum(), 3372)
E       AssertionError: 
E       Not equal to tolerance rtol=1e-07, atol=0
E       
E       Mismatched elements: 1 / 1 (100%)
E       Max absolute difference: 15
E       Max relative difference: 0.0044484
E        x: array(3387)
E        y: array(3372)

gammapy/maps/wcs/tests/test_ndmap.py:836: AssertionError
______________________________ test_binary_dilate ______________________________

    def test_binary_dilate():
        geom = WcsGeom.create(binsz=0.02, width=2 * u.deg)
        mask = geom.region_mask("icrs;circle(0, 0, 0.8)")
    
        mask = mask.binary_dilate(width=0.2 * u.deg, kernel="disk", use_fft=False)
        assert_allclose(mask.data.sum(), 8048)
    
        mask = mask.binary_dilate(width=(10, 10), kernel="box")
>       assert_allclose(mask.data.sum(), 9203)
E       AssertionError: 
E       Not equal to tolerance rtol=1e-07, atol=0
E       
E       Mismatched elements: 1 / 1 (100%)
E       Max absolute difference: 11
E       Max relative difference: 0.00119526
E        x: array(9214)
E        y: array(9203)

gammapy/maps/wcs/tests/test_ndmap.py:847: AssertionError
=========================== short test summary info ============================
FAILED gammapy/maps/wcs/tests/test_ndmap.py::test_binary_erode - AssertionErr...
FAILED gammapy/maps/wcs/tests/test_ndmap.py::test_binary_dilate - AssertionEr...
===== 2 failed, 1030 passed, 562 skipped, 10 xfailed in 150.08s (0:02:30) ======
...



More information about the Debian-astro-maintainers mailing list