From 30f60816e3bd5ac7a7ea7758207e83c009c280a5 Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Tue, 10 Sep 2024 17:12:53 +0200 Subject: [PATCH] fix: fails if value is 3072 --- python/mocpy/tests/test_moc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mocpy/tests/test_moc.py b/python/mocpy/tests/test_moc.py index ec05c0eb..83147132 100644 --- a/python/mocpy/tests/test_moc.py +++ b/python/mocpy/tests/test_moc.py @@ -529,7 +529,7 @@ def test_mpl_border(): def test_moc_contains(order): # defines 20 random healpix cells of the required order size = 20 - healpix_arr = rng.integers(0, 12 * 4**order, size, dtype="uint64", endpoint=True) + healpix_arr = rng.integers(0, 12 * 4**order, size, dtype="uint64", endpoint=False) # defines a moc containing the 20 points moc = MOC.from_json(json_moc={str(order): np.unique(healpix_arr).tolist()}) # the complementary should not contain them