From fde205a6a03f25f28f7cd1342d8b8b2fac2bc490 Mon Sep 17 00:00:00 2001 From: "Brett M. Morris" Date: Tue, 30 Jul 2024 17:35:59 -0400 Subject: [PATCH] loosen check on coordinate class for nddata translator --- glue_astronomy/translators/nddata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glue_astronomy/translators/nddata.py b/glue_astronomy/translators/nddata.py index fc7104c..6ff883e 100644 --- a/glue_astronomy/translators/nddata.py +++ b/glue_astronomy/translators/nddata.py @@ -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')