Skip to content

Commit

Permalink
Document changes in time.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aelanman authored May 13, 2024
1 parent 14e0ef5 commit 6c6a9b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lunarsky/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def __init__(
)

if isinstance(location, MoonLocation):
# Avoids a deprecation warning in astropy >= 6.1, while
# maintaining compatibility with earlier versions.
if (version.major == 6 and version.minor >= 1) or version.major > 6:
self._location = location
else:
Expand Down

0 comments on commit 6c6a9b4

Please sign in to comment.