Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosen check on coordinate class for NDData translator to accept subclasses #101

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
loosen check on coordinate class for nddata translator
  • Loading branch information
bmorris3 committed Aug 1, 2024
commit 53563ff99953d93b9e1fec51f66cd8ee84522a2d
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