Skip to content

Commit

Permalink
update comment in time.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aelanman authored May 13, 2024
1 parent 6c6a9b4 commit 694f4ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lunarsky/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +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:
# In astropy >= 6.1, time.Time.location is a property that shouldn't be set directly
self._location = location
else:
self.location = location
Expand Down

0 comments on commit 694f4ca

Please sign in to comment.