Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #213 from astrofrog/fix-deprecation
Browse files Browse the repository at this point in the history
Fix deprecation warning
  • Loading branch information
astrofrog committed Nov 24, 2016
2 parents 2d205b6 + 2067c68 commit 9e27169
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:
# to repeat them for all configurations.
- NUMPY_VERSION=stable
- ASTROPY_VERSION=stable
- CONDA_DEPENDENCIES='pyqt nose matplotlib pillow'
- CONDA_DEPENDENCIES='pyqt nose matplotlib pillow pyqt=4'
- PIP_DEPENDENCIES='pytest-mpl'
- SETUP_XVFB=True
- SETUP_CMD='test --remote-data'
Expand Down
8 changes: 7 additions & 1 deletion wcsaxes/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

from astropy import units as u
from astropy.coordinates.representation import UnitSphericalRepresentation, CartesianRepresentation
from astropy.coordinates.angles import rotation_matrix

try:
from astropy.coordinates.matrix_utilities import rotation_matrix as rotation_array
def rotation_matrix(*args, **kwargs):
return np.matrix(rotation_array(*args, **kwargs))
except ImportError:
from astropy.coordinates.angles import rotation_matrix

__all__ = ['SphericalCircle']

Expand Down

0 comments on commit 9e27169

Please sign in to comment.