Skip to content

Test failure on Debian architecture mipsel #71

@olebole

Description

@olebole

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions