Skip to content

Commit

Permalink
Backport PR spacetelescope#3267: Fix URI for autoconfig test for spec…
Browse files Browse the repository at this point in the history
…viz2d, add back specviz test
  • Loading branch information
bmorris3 authored and meeseeksmachine committed Nov 4, 2024
1 parent 64cb2c2 commit ad2a730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,11 @@ def test_spectral_extraction_unit_conv_one_spec(
@pytest.mark.parametrize(
"start_slice, aperture, expected_rtol, uri, calspec_url",
(
(5.2, (20.5, 17, 10.9), 0.01,
(5.2, (20.5, 17, 10.9), 0.03,
"mast:jwst/product/jw01524-o003_t002_miri_ch1-shortmediumlong_s3d.fits",
calspec_url + "delumi_mod_005.fits"), # delta UMi
(4.85, (28, 21, 12), 0.01,
(4.85, (28, 21, 12), 0.03,
"mast:jwst/product/jw01050-o003_t005_miri_ch1-shortmediumlong_s3d.fits",
calspec_url + "hd159222_mod_007.fits"), # HD 159222
)
Expand Down
7 changes: 3 additions & 4 deletions jdaviz/core/tests/test_autoconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@

from jdaviz import open as jdaviz_open
from jdaviz.cli import ALL_JDAVIZ_CONFIGS
from jdaviz.configs import Specviz2d, Cubeviz, Imviz # , Specviz
from jdaviz.configs import Specviz2d, Cubeviz, Imviz, Specviz
from jdaviz.core.launcher import Launcher, STATUS_HINTS


AUTOCONFIG_EXAMPLES = (
# ("mast:JWST/product/jw02732-o004_t004_miri_ch1-shortmediumlong_x1d.fits", Specviz),
# Specviz check disabled due to https://github.com/spacetelescope/jdaviz/issues/2229
("mast:JWST/product/jw01538-o160_s00004_nirspec_f170lp-g235h-s1600a1-sub2048_s2d.fits", Specviz2d), # noqa
("mast:JWST/product/jw02732-o004_t004_miri_ch1-shortmediumlong_x1d.fits", Specviz),
("mast:JWST/product/jw01538160001_16101_00004_nrs1_s2d.fits", Specviz2d),
("mast:JWST/product/jw02727-o002_t062_nircam_clear-f090w_i2d.fits", Imviz),
("mast:JWST/product/jw02732-o004_t004_miri_ch1-shortmediumlong_s3d.fits", Cubeviz),
("https://stsci.box.com/shared/static/28a88k1qfipo4yxc4p4d40v4axtlal8y.fits", Cubeviz)
Expand Down

0 comments on commit ad2a730

Please sign in to comment.