Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure on Debian architecture mipsel #71

Open
olebole opened this issue Dec 3, 2021 · 0 comments
Open

Test failure on Debian architecture mipsel #71

olebole opened this issue Dec 3, 2021 · 0 comments

Comments

@olebole
Copy link
Member

olebole commented Dec 3, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant