Closed ddobie closed 3 months ago
FAILED tests/test_tools.py::test_gen_mocs_image[write] - AssertionError: assert 2458786.032079079 == 2458786.0312783564
The difference in times is 69.18244511s, significantly more than the claimed mocpy time resolution of 1 microsecond. Either the time resolution is incorrect or something weird is going on.
The issue is in the conversion to JD. Directly comparing the astropy time objects to one another results in the expected behaviour, within the 1 microsecond error - need to use .isclose()
to account for that error though.
Tests fail for mocpy>0.8, because the STMOC start and end times do not match the input start and end times.