Skip to content

Commit

Permalink
fix: upper right corner is not expected in the MOC
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Nov 8, 2024
1 parent 3eebca2 commit 659c0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mocpy/tests/test_moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def test_from_ring():
def test_from_zone():
moc = MOC.from_zone(SkyCoord([[-50, -50], [50, 50]], unit="deg"), max_depth=5)
# test the diagonal
for coordinate in range(-50, 60, 10):
for coordinate in range(-50, 40, 10): ## (50,50) not included
assert moc.contains_skycoords(SkyCoord(coordinate, coordinate, unit="deg"))
# regression for #180
MOC.from_zone(SkyCoord([(180, 30), (360, 50)], unit="deg"), max_depth=3)
Expand Down

0 comments on commit 659c0ca

Please sign in to comment.