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 8a208b8 commit a826b6d
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 @@ -244,8 +244,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 a826b6d

Please sign in to comment.