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

JWSTDMS-410 Asn_Lv2NRSLAMPSpectral: Break out the negative cases #5635

Merged
merged 3 commits into from
Jan 18, 2021
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
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
associations
------------

- JWSTDMS-410 Asn_Lv2NRSLAMPSpectral: Break out the negative cases [#5635]

- Update MIRI LRS-Fixedslit ALONG-SLIT-NOD backgrounds strategies [#5620]

cube_build
Expand Down
16 changes: 13 additions & 3 deletions jwst/associations/lib/rules_level2b.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,19 @@ def __init__(self, *args, **kwargs):
Constraint(
[
DMSAttrConstraint(
sources=['grating', 'opmode', 'lamp'],
value='mirror|grating-only|nolamp',
force_unique=False
sources=['grating'],
value='mirror',
force_unique=False,
),
DMSAttrConstraint(
sources=['opmode'],
value='grating-only',
force_unique=False,
),
DMSAttrConstraint(
sources=['lamp'],
value='nolamp',
force_unique=False,
),
],
reduce=Constraint.notany
Expand Down
2 changes: 1 addition & 1 deletion jwst/lib/tests/test_engdb_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_mocker_alive(db_cache):
'mnemonic, count',
[
(GOOD_MNEMONIC, 1),
('CAL', 40),
('CAL', 14),
('', 2100),
]
)
Expand Down