From 3c0a94694672a3c406d04792b251a744cd0a60c5 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Mon, 18 Nov 2024 13:43:41 -0500 Subject: [PATCH] Fix GWCS failures due to the API spring cleaning PR --- jwst/assign_wcs/tests/test_wcs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jwst/assign_wcs/tests/test_wcs.py b/jwst/assign_wcs/tests/test_wcs.py index cd1b4e9912..b555ea5b88 100644 --- a/jwst/assign_wcs/tests/test_wcs.py +++ b/jwst/assign_wcs/tests/test_wcs.py @@ -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)