Skip to content

Commit

Permalink
Fix GWCS failures due to the API spring cleaning PR
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Dec 19, 2024
1 parent 9f1bbbd commit 3c0a946
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jwst/assign_wcs/tests/test_wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ def test_frame_from_model_3d(tmp_path, create_model_3d):
# Test CompositeFrame initialization (celestial and spectral)
im = create_model_3d
frame = pointing.frame_from_model(im)
radec, lam = frame.coordinates(1, 2, 3)

radec, lam = frame.to_high_level_coordinates(1, 2, 3)

# # This "fix" is subject to change, API maybe added to gwcs to handle this sort of thing.
# radec = SkyCoord(1, 2, unit=frame.frames[0].unit, frame=frame.frames[0].reference_frame)
# lam = SpectralCoord(3, frame.frames[1].unit[0])

assert_allclose(radec.spherical.lon.value, 1)
assert_allclose(radec.spherical.lat.value, 2)
Expand Down

0 comments on commit 3c0a946

Please sign in to comment.