diff --git a/CHANGES.rst b/CHANGES.rst index cbe5f5685e..5e233d4c34 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 diff --git a/jwst/associations/lib/rules_level2b.py b/jwst/associations/lib/rules_level2b.py index a81526d4a6..ad0e0dde70 100644 --- a/jwst/associations/lib/rules_level2b.py +++ b/jwst/associations/lib/rules_level2b.py @@ -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 diff --git a/jwst/lib/tests/test_engdb_mock.py b/jwst/lib/tests/test_engdb_mock.py index 1e5a3d8ec4..e5e62f3114 100644 --- a/jwst/lib/tests/test_engdb_mock.py +++ b/jwst/lib/tests/test_engdb_mock.py @@ -158,7 +158,7 @@ def test_mocker_alive(db_cache): 'mnemonic, count', [ (GOOD_MNEMONIC, 1), - ('CAL', 40), + ('CAL', 14), ('', 2100), ] )