Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport PR #3267: Fix URI for autoconfig test for specviz2d, add back specviz test #3287

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading