Skip to content

Regression with Astropy 7.2: WCSLink does not raise on WCS without physical_types #2548

@dhomeier

Description

@dhomeier

Describe the bug
Failure of test_wcs_autolink_emptywcs in all dev jobs, can be tracked down to wcs_autolink returning a non-empty list with one link.

To Reproduce
Test glue/plugins/wcs_autolinking/tests/test_wcs_autolinking.py or manually run WCSLink(data1, data2) with the data as setup there.

Expected behavior
WCSLink should raise in

if pixel_cids1 is None:
raise IncompatibleWCS("Can't create WCS link between {0} and {1}".format(data1.label, data2.label))

but returns a link with link._physical_types_* = [None] instead.
Might need to check explicitly for valid _physical_types_ there in addition to pixel_cids1, but perhaps should investigate the responsible change in astropy.wcs first.

Details:

  • Operating System: macOS 11.7.10 or any in -dev job, e.g. in
    #2547 CI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions