Skip to content

Commit

Permalink
A real test failure wrt numpy dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Sep 12, 2023
1 parent 4037d68 commit 9aafe7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion specutils/tests/test_spectrum1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from astropy.nddata import StdDevUncertainty
from astropy.coordinates import SpectralCoord
from astropy.wcs import WCS
from numpy.testing import assert_allclose

from .conftest import remote_access
from ..spectra import Spectrum1D
Expand Down Expand Up @@ -123,7 +124,9 @@ def test_create_from_cube():

assert spec.flux.shape == (4,3,2)
assert spec.flux[3,2,1] == 23*u.Jy
assert np.all(spec.spectral_axis.value == np.exp(np.array([1,2])*w.wcs.cdelt[-1]/w.wcs.crval[-1])*w.wcs.crval[-1])
assert_allclose(
spec.spectral_axis.value,
np.exp(np.array([1, 2]) * w.wcs.cdelt[-1] / w.wcs.crval[-1]) * w.wcs.crval[-1])


def test_spectral_axis_conversions():
Expand Down

0 comments on commit 9aafe7a

Please sign in to comment.