[Python-modules-team] Bug#906198:

Michael Hudson-Doyle michael.hudson at canonical.com
Mon Sep 10 10:05:39 BST 2018


So strangely enough, I don't see this failure on Ubuntu, the only test test
that failed for me is

______________________________ test_gauss_center
_______________________________

    def test_gauss_center():
        """Check the gaussian center fitting."""
        # make a 2d dataset with a gaussian at the center
        from astropy.convolution import Gaussian2DKernel
        gaussian_2D_kernel = Gaussian2DKernel(10)
        plots = Imexamine()
        plots.set_data(gaussian_2D_kernel.array)
        a, xx, yy, xs, ys = plots.gauss_center(37, 37)

        amp = 0.0015915494309189533
        xc = 40.0
        yc = 40.0
        xsig = 10.0
        ysig = 10.0

>       assert_allclose(amp, a, 1e-6)
E       AssertionError:
E       Not equal to tolerance rtol=1e-06, atol=0
E
E       (mismatch 100.0%)
E        x: array(0.001592)
E        y: array(0.000447)

imexam/tests/test_imexamine.py:114: AssertionError
----------------------------- Captured stdout call
-----------------------------
xc=37.001304    yc=37.001304

Do you have any idea what's causing this failure? :)

I say strangely because I thought Ubuntu and Debian were mostly in sync on
this stack...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20180910/7b3022d4/attachment.html>


More information about the Python-modules-team mailing list