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

Commit

Permalink
Support sub-classes of spherical representations
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Aug 20, 2015
1 parent 9b0c2fc commit 0eab81c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wcsaxes/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ def transform(self, input_coords):

c_out = c_in.transform_to(self.output_system)

if (c_out.representation is SphericalRepresentation or
c_out.representation is UnitSphericalRepresentation):
if issubclass(c_out.representation, (SphericalRepresentation, UnitSphericalRepresentation)):
lon = c_out.data.lon.deg
lat = c_out.data.lat.deg
else:
Expand Down

0 comments on commit 0eab81c

Please sign in to comment.