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

Data Load Error Trying to Open FITS Table #2495

Open
SpacialTree opened this issue May 21, 2024 · 0 comments
Open

Data Load Error Trying to Open FITS Table #2495

SpacialTree opened this issue May 21, 2024 · 0 comments
Labels

Comments

@SpacialTree
Copy link

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

To Reproduce

  1. Download and unpack zip with example catalog
    crowdsource_nsky0_merged_photometry_tables_merged-trimmed.zip
  2. Open Glue and import data from catalog
  3. See error

Screenshots
image

Details:

  • Operating System: Windows 11 OS build 22631.3447, using WSL-Ubuntu 5.10.102.1-microsoft-standard-WSL2
  • Python version (python --version): Python 3.9.7
  • Glue version (glue --version): 1.21.1.dev12+g5e92185d
  • How you installed glue: git cloned most recent repository and installed with pip install .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant