Skip to content

Commit

Permalink
GTI tests should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniela Huppenkothen authored and OrkoHunter committed May 28, 2016
1 parent 61edbc0 commit 085939e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingray/tests/test_gti.py
Expand Up @@ -49,7 +49,6 @@ def test_gti_mask(self):
arr = np.array([0, 1, 2, 3, 4, 5, 6])
gti = np.array([[0, 2.1], [3.9, 5]])
mask = create_gti_mask(arr, gti)
print(mask)
# NOTE: the time bin has to be fully inside the GTI. That is why the
# bin at times 0, 2, 4 and 5 are not in.
assert np.all(mask == np.array([0, 1, 0, 0, 0, 0, 0], dtype=bool))
Expand All @@ -58,6 +57,7 @@ def test_gti_gti_from_condition(self):
t = np.array([0, 1, 2, 3, 4, 5, 6])
condition = np.array([1, 1, 0, 0, 1, 0, 0], dtype=bool)
gti = create_gti_from_condition(t, condition)
print("gti: " + str(gti))
assert np.all(gti == np.array([[-0.5, 1.5], [3.5, 4.5]]))

def test_load_gtis(self):
Expand Down

0 comments on commit 085939e

Please sign in to comment.