Skip to content

Commit

Permalink
Merge pull request #102 from Carifio24/astropy-v6
Browse files Browse the repository at this point in the history
Update import location for astropy v6
  • Loading branch information
astrofrog authored Feb 24, 2024
2 parents ee4d1dd + 9d482be commit 514ab6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion glue_wwt/viewer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import numpy as np

from astropy import units as u
from astropy.coordinates.angle_utilities import angular_separation
try:
from astropy.coordinates import angular_separation
except ImportError:
from astropy.coordinates.angle_utilities import angular_separation
from astropy.coordinates.representation import UnitSphericalRepresentation

__all__ = ['center_fov']
Expand Down

0 comments on commit 514ab6d

Please sign in to comment.