Skip to content

Commit

Permalink
loosen check on coordinate class for nddata translator
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Jul 30, 2024
1 parent a7ddd28 commit fde205a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glue_astronomy/translators/nddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def to_object(self, data_or_subset, attribute=None):

if isinstance(data.coords, (WCS, BaseHighLevelWCS, SpectralCoordinates)):
wcs = data.coords
elif type(data.coords) is Coordinates or data.coords is None:
elif isinstance(data.coords, Coordinates) or data.coords is None:
wcs = None
else:
raise TypeError('data.coords should be an instance of Coordinates or WCS')
Expand Down

0 comments on commit fde205a

Please sign in to comment.