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

Fails test_t_ccd_warm_limit_guide #73

Open
jeanconn opened this issue Mar 5, 2019 · 0 comments
Open

Fails test_t_ccd_warm_limit_guide #73

jeanconn opened this issue Mar 5, 2019 · 0 comments

Comments

@jeanconn
Copy link
Contributor

jeanconn commented Mar 5, 2019

Also, I thought the tests were fixed before the release but maybe I have this confused with another package

In [1]: import chandra_aca

In [2]: chandra_aca.__version__
Out[2]: '4.25.1'

In [3]: chandra_aca.test()
===================================================== test session starts =====================================================
platform linux -- Python 3.6.2, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
rootdir: /fido.real/ska3/lib/python3.6/site-packages, inifile:
plugins: doctestplus-0.1.3, arraydiff-0.2, remotedata-0.3.0, openfiles-0.3.0
collected 117 items                                                                                                            

chandra_aca/tests/test_aca_image.py ..........
chandra_aca/tests/test_all.py ..............
chandra_aca/tests/test_attitude.py .............................................................
chandra_aca/tests/test_dark_model.py ....
chandra_aca/tests/test_psf.py ...
chandra_aca/tests/test_residuals.py ..ss.
chandra_aca/tests/test_star_probs.py .......F............

========================================================== FAILURES ===========================================================
_________________________________________________ test_t_ccd_warm_limit_guide _________________________________________________

    def test_t_ccd_warm_limit_guide():
        mags = np.array([5.85] * 5)
        t_ccd = t_ccd_warm_limit_for_guide(mags, warm_t_ccd=5.0, cold_t_ccd=-16)
        assert np.isclose(t_ccd, -16, atol=0.1, rtol=0)
        mags = np.array([6.0, 6.0, 6.0, 6.0, 6.0])
        t_ccd = t_ccd_warm_limit_for_guide(mags, warm_t_ccd=5.0, cold_t_ccd=-16)
        assert np.isclose(t_ccd, 5.0, atol=0.1, rtol=0)
        mags = np.array([6.0, 6.0, 6.0, 10.3, 10.3])
        t_ccd = t_ccd_warm_limit_for_guide(mags, warm_t_ccd=5.0, cold_t_ccd=-16)
>       assert np.isclose(t_ccd, -10.9, atol=0.1, rtol=0)
E       assert False
E        +  where False = <function isclose at 0x7f8deeea1e18>(-11.414581298828125, -10.9, atol=0.1, rtol=0)
E        +    where <function isclose at 0x7f8deeea1e18> = np.isclose

chandra_aca/tests/test_star_probs.py:108: AssertionError
====================================== 1 failed, 114 passed, 2 skipped in 13.87 seconds =======================================
Out[3]: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant