Skip to content

TST: test_noncelestial_scale emits RuntimeWarning for some cases #9310

@pllim

Description

@pllim

Description

Some test cases fed into test_noncelestial_scale in astropy.wcs.test_utils emit RuntimeWarning. Affected code:

mywcs.wcs.cdelt = cdelt
mywcs.wcs.ctype = ['RA---TAN', 'FREQ']
ps = non_celestial_pixel_scales(mywcs)
assert_almost_equal(ps.to_value(u.deg), np.array([0.1, 0.2]))

xref #9010 (review)

Expected behavior

Tests complete without RuntimeWarning.

Actual behavior

RuntimeWarning happens when you set pytest to show warnings.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions