Skip to content

Commit 03a0a6b

Browse files
fixes test failure due to uneven Bin sizes
1 parent 1e30866 commit 03a0a6b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stingray/tests/test_lightcurve.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,9 @@ def test_shift(self):
13361336
UserWarning,
13371337
match="Some functionalities of Stingray Lightcurve will not work when `dt` is Iterable",
13381338
):
1339-
lc2 = Lightcurve(times, counts, input_counts=True, dt=[1.0] * len(times))
1339+
lc2 = Lightcurve(
1340+
times, counts, input_counts=True, dt=[1.0] * len(times), skip_checks=True
1341+
)
13401342
lc1.shift(1, inplace=True)
13411343
lc2.shift(1, inplace=True)
13421344
assert np.allclose(lc1.time - 1, times)

0 commit comments

Comments
 (0)