From 0dcd6082e4d7a366a26ac004686c8131770d6f90 Mon Sep 17 00:00:00 2001 From: Nadia Dencheva Date: Thu, 12 Dec 2024 08:56:03 -0500 Subject: [PATCH] fix for gwcs#498 --- specutils/tests/test_spectrum1d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specutils/tests/test_spectrum1d.py b/specutils/tests/test_spectrum1d.py index 36f249d8a..7180aff03 100644 --- a/specutils/tests/test_spectrum1d.py +++ b/specutils/tests/test_spectrum1d.py @@ -330,7 +330,7 @@ def test_wcs_transformations(): with u.set_enabled_equivalencies(u.spectral()): # After spacetelescope/gwcs#457 is merged and released, this can be changed to # spec.wcs.world_to_pixel_values(np.arange(20, 30) * u.GHz) - spec.wcs.world_to_pixel(SpectralCoord(np.arange(20, 30) * u.GHz)) + spec.wcs.world_to_pixel(SpectralCoord(np.arange(6.9e6, 1e7) * u.GHz)) # Test with a FITS WCS my_wcs = fitswcs.WCS(header={'CDELT1': 1, 'CRVAL1': 6562.8, 'CUNIT1': 'Angstrom',