Skip to content

Commit

Permalink
remove test_maude_vs_aca_l0_times that depends on mica
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Oct 24, 2024
1 parent db0ce33 commit fda591d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions chandra_aca/tests/test_maude_decom.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import maude
import numpy as np
import pytest
from mica.archive.aca_l0 import get_aca_images

from chandra_aca import maude_decom

Expand Down Expand Up @@ -1234,20 +1233,3 @@ def test_end_integ_time(combine):
rtol=0,
)
)


def test_maude_vs_aca_l0_times():
# mica.archive.aca_l0.get_images should return the same data as maude_decom.get_images
# we are testing that the times from maude_decom agree with those from mica
start, stop = (686111020.683, 686111028.903)
table_maude = maude_decom.get_aca_images(start, stop)
table_maude.sort(["VCDUCTR", "IMGNUM"])
table_mica = get_aca_images(start, stop)
table_mica.sort(["VCDUCTR", "IMGNUM"])

assert len(table_mica) == len(table_maude)
assert np.all(table_maude["VCDUCTR"] == table_mica["VCDUCTR"])
assert np.all(np.isclose(table_maude["TIME"], table_maude["TIME"], rtol=0))
assert np.all(
np.isclose(table_maude["END_INTEG_TIME"], table_maude["END_INTEG_TIME"], rtol=0)
)

0 comments on commit fda591d

Please sign in to comment.