Skip to content

Commit

Permalink
ignore multiple slashes warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Sep 24, 2024
1 parent 433eba0 commit 24d6c09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jdaviz/configs/specviz/tests/test_viewers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import astropy.units as u
import numpy as np
import pytest
import warnings
from specutils import Spectrum1D


Expand All @@ -19,7 +20,9 @@ def test_spectrum_viewer_axis_labels(specviz_helper, input_unit, y_axis_label):

spec = Spectrum1D(flux, spectral_axis)

specviz_helper.load_data(spec)
with warnings.catch_warnings():
warnings.filterwarnings("ignore", message=".*contains multiple slashes, which is discouraged by the FITS standard.*") # noqa
specviz_helper.load_data(spec)

label = specviz_helper.app.get_viewer_by_id('specviz-0').figure.axes[1].label

Expand Down

0 comments on commit 24d6c09

Please sign in to comment.