Skip to content

Commit

Permalink
Add back test for MJDREF
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Mar 7, 2024
1 parent c487c97 commit b3e61ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion stingray/tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,18 @@ def test_calibrate_directly(self):

assert np.array_equal(ev1.energy, ev2.energy)

def test_fits_with_standard_file_and_calibrate_directly(self):
def test_fits_standard(self):
"""Test that fits works with a standard event list
file.
"""
fname = os.path.join(datadir, "monol_testA.evt")
ev = EventList()
ev = ev.read(fname, fmt="hea")
assert np.isclose(ev.mjdref, 55197.00076601852)

def test_fits_with_standard_file_and_calibrate_directly(self):
"""Test that fits works and calibration works."""
fname = os.path.join(datadir, "monol_testA.evt")
rmf_file = os.path.join(datadir, "test.rmf")
ev1 = EventList()
ev1 = ev1.read(fname, fmt="hea")
Expand Down

0 comments on commit b3e61ad

Please sign in to comment.