Skip to content

Commit

Permalink
JP-2108 Asn_Lv2NRSLAMPSpectral: Allow msaspec only if msametfl is ava…
Browse files Browse the repository at this point in the history
…ilable. (#6085)

* Asn_Lv2NRSLAMPSpectral: Allow msaspec only if msametfl is available.

* update changelog

* update changelog again [skip ci]
  • Loading branch information
stscieisenhamer authored May 28, 2021
1 parent 4bd9e5a commit 891449b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.2.1 (unreleased)
==================

associations
------------

- Asn_Lv2NRSLAMPSpectral: Allow msaspec only if msametfl is available. [#6085]

combine_1d
----------

Expand Down Expand Up @@ -53,6 +58,8 @@ assign_wcs
associations
------------

- Asn_Lv2NRSLAMPSpectral: Allow msaspec only if msametfl is available. [#6085]

- Add rule Asn_MIRMRSBackground to treat background as science. [#6046]

- Updated level2b WFSS rules to only consider exposures from the same
Expand Down
26 changes: 23 additions & 3 deletions jwst/associations/lib/rules_level2b.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,29 @@ def __init__(self, *args, **kwargs):
sources=['filter'],
value='opaque'
),
DMSAttrConstraint(
name='opmode',
sources=['opmode'],
Constraint(
[
Constraint(
[DMSAttrConstraint(
name='opmode',
sources=['opmode'],
value='msaspec',
)],
reduce=Constraint.notany
),
Constraint(
[
DMSAttrConstraint(
sources=['opmode'],
value='msaspec'
),
DMSAttrConstraint(
sources=['msametfl']
)
]
),
],
reduce=Constraint.any
),
DMSAttrConstraint(
name='lamp',
Expand Down

0 comments on commit 891449b

Please sign in to comment.