I am attempting to import data from a FITS table that includes a SkyCoord column, like in Issue #2487, but it fails with a Data Load Error. This is the error message included:
Error message: unsupported class for construct astropy.coordinates.angles.core.Latitude
Traceback (most recent call last):
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/glue_qt/dialogs/data_wizard/data_wizard_dialog.py", line 41, in data_wizard
result = gdd.load_data()
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/glue_qt/dialogs/data_wizard/data_wizard_dialog.py", line 129, in load_data
d = load_data(path, factory=fac.function)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/glue/core/data_factories/helpers.py", line 279, in load_data
d = as_list(factory(path, **kwargs))
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/glue/core/data_factories/helpers.py", line 405, in auto_data
return fac(filename, *args, **kwargs)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/glue/core/data_factories/fits.py", line 145, in fits_reader
table = Table.read(hdu, format='fits')
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/table/connect.py", line 62, in __call__
out = self.registry.read(cls, *args, **kwargs)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/io/registry/core.py", line 218, in read
data = reader(*args, **kwargs)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/io/fits/connect.py", line 337, in read_table_fits
t = _decode_mixins(t)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/io/fits/connect.py", line 116, in _decode_mixins
tbl = serialize._construct_mixins_from_columns(tbl)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/table/serialize.py", line 423, in _construct_mixins_from_columns
_construct_mixin_from_columns(new_name, obj_attrs, out)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/table/serialize.py", line 370, in _construct_mixin_from_columns
_construct_mixin_from_columns(out_name, val, out)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/table/serialize.py", line 409, in _construct_mixin_from_columns
col = _construct_mixin_from_obj_attrs_and_info(obj_attrs, info)
File "/home/savannahgramze/anaconda3/lib/python3.9/site-packages/astropy/table/serialize.py", line 316, in _construct_mixin_from_obj_attrs_and_info
raise ValueError(f"unsupported class for construct {cls_full_name}")
ValueError: unsupported class for construct astropy.coordinates.angles.core.Latitude
I am attempting to import data from a FITS table that includes a SkyCoord column, like in Issue #2487, but it fails with a Data Load Error. This is the error message included:
To Reproduce
Screenshots
Details:
5.10.102.1-microsoft-standard-WSL2
python --version
): Python 3.9.7glue --version
): 1.21.1.dev12+g5e92185dpip install .