Open jeanconn opened 5 years ago
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
Also, I thought the tests were fixed before the release but maybe I have this confused with another package