Skip to content

Commit

Permalink
Fix the multiple GTI test (actually give two gtis, not one)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Nov 9, 2024
1 parent a37f723 commit d204011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingray/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def test_read_apply_single_gti_lists(self):
def test_read_apply_multiple_gti_lists(self):
reader = FITSTimeseriesReader(self.fname, output_class=EventList)

evs = list(reader.apply_gti_lists([[[80000000, 80000512], [80000513, 80001024]]]))
evs = list(reader.apply_gti_lists([[[80000000, 80000512]], [[80000513, 80001024]]]))
assert len(evs) == 2
assert np.allclose(evs[0].gti, [[80000000, 80000512]])
assert np.allclose(evs[1].gti, [[80000513, 80001024]])
Expand Down

0 comments on commit d204011

Please sign in to comment.