astroscrappy icon indicating copy to clipboard operation
astroscrappy copied to clipboard

Test failure on Debian architecture mipsel

Open olebole opened this issue 4 years ago • 0 comments

With the release 1.1.0, I get the following failure on mips64el (MIPS, 32 bit, little endian):

______________________________ test_median_clean _______________________________

    def test_median_clean():
        # Because our image only contains single cosmics, turn off
        # neighbor detection. Also, our cosmic rays are high enough
        # contrast that we can turn our detection threshold up.
        _mask, clean = detect_cosmics(imdata, readnoise=10., gain=1.0,
                                      sigclip=6, sigfrac=1.0, cleantype='median')
    
        assert (clean[crmask] != imdata[crmask]).sum() == crmask.sum()
    
        # Run it again on the clean data. We shouldn't find any new cosmic rays
        _mask2, _clean2 = detect_cosmics(clean, readnoise=10., gain=1.0,
                                         sigclip=6, sigfrac=1.0, cleantype='median')
>       assert _mask2.sum() == 0
E       assert 8780 == 0
E        +  where 8780 = <built-in method sum of numpy.ndarray object at 0xf353f530>()
E        +    where <built-in method sum of numpy.ndarray object at 0xf353f530> = array([[False, False, False, ..., False, False, False],\n       [False, False, False, ..., False, False, False],\n      ...alse],\n       [False, False, False, ..., False, False, False],\n       [False, False, False, ..., False, False, False]]).sum

/usr/lib/python3/dist-packages/astroscrappy/tests/test_cleaning.py:22: AssertionError

Full build log here.

Package versions:

  • Python 3.9.9 and 3.10
  • Numpy: 1.21.4
  • Scipy: 1.7.1
  • Astropy: 5.0

A similar problem (with _mask2.sum()=8700) happened with armhf (ARM 32 bit little endian) with astropy 4.3.1 (but with 5.0 it succeeded on armhf).

olebole avatar Dec 03 '21 07:12 olebole