Repository: spacetelescope/crds (language: python)

Issue:
update actions version to address deprecation warnings
[<img width="792" alt="image" src="https://github.com/spacetelescope/crds/assets/16024299/21da3b31-efac-40ef-bbe4-5a25f2d6898a">](https://github.com/spacetelescope/crds/actions/runs/7656868869)


Discussion / hints:

Fix patch:
diff --git a/CHANGES.rst b/CHANGES.rst
index 721773a32..cc8eab258 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,3 +1,10 @@
+11.17.17 (Unreleased)
+=====================
+
+JWST
+----
+- Added new rmap for niriss_mask-nrm [#1027]
+
 11.17.16 (2024-02-05)
 =====================
 
diff --git a/crds/jwst/specs/combined_specs.json b/crds/jwst/specs/combined_specs.json
index 7a367cd71..8592a2efb 100644
--- a/crds/jwst/specs/combined_specs.json
+++ b/crds/jwst/specs/combined_specs.json
@@ -1329,7 +1329,11 @@
             "unique_rowkeys":null
         },
         "mask":{
-            "derived_from":"jwst_miri_mask_0002.rmap",
+            "classes":[
+                "Match",
+                "UseAfter"
+            ],
+            "derived_from":"jwst_miri_mask_new.rmap",
             "extra_keys":null,
             "file_ext":".fits",
             "filekind":"MASK",
@@ -1337,15 +1341,26 @@
             "instrument":"MIRI",
             "ld_tpn":"miri_mask_ld.tpn",
             "mapping":"REFERENCE",
-            "name":"jwst_miri_mask_0003.rmap",
+            "name":"miri_mask.rmap",
             "observatory":"JWST",
             "parkey":[
                 [
                     "META.INSTRUMENT.DETECTOR",
-                    "META.INSTRUMENT.FILTER"
+                    "META.SUBARRAY.NAME",
+                    "META.EXPOSURE.READPATT",
+                    "META.EXPOSURE.NGROUPS"
+                ],
+                [
+                    "META.OBSERVATION.DATE",
+                    "META.OBSERVATION.TIME"
                 ]
             ],
-            "sha1sum":"14e365f2d096081fb0d05ac2657f724e63253e31",
+            "sha1sum":"1366d1d6206db422c4acf9f82090165d172c42ed",
+            "substitutions":{
+                "META.SUBARRAY.NAME":{
+                    "GENERIC":"N/A"
+                }
+            },
             "suffix":"mask",
             "text_descr":"Bad Pixel Mask",
             "tpn":"miri_mask.tpn",
@@ -5227,6 +5242,32 @@
             "tpn":"niriss_mask.tpn",
             "unique_rowkeys":null
         },
+        "mask-nrm":{
+            "derived_from":"niriss_mask.spec",
+            "extra_keys":null,
+            "file_ext":".fits",
+            "filekind":"nrm",
+            "filetype":"NRM",
+            "instrument":"NIRISS",
+            "ld_tpn":"niriss_nrm_ld.tpn",
+            "mapping":"REFERENCE",
+            "name":"jwst_niriss_mask_nrm.rmap",
+            "observatory":"JWST",
+            "parkey":[
+                [
+                    "META.EXPOSURE.TYPE"
+                ],
+                [
+                    "META.OBSERVATION.DATE",
+                    "META.OBSERVATION.TIME"
+                ]
+            ],
+            "sha1sum":"6580001143ded5c25a97c3d10d9764a242569b16",
+            "suffix":"nrm",
+            "text_descr":"Numerical representation of the non-redundant mask in the pupil wheel of NIRISS.",
+            "tpn":"niriss_nrm.tpn",
+            "unique_rowkeys":null
+        },
         "pars-chargemigrationstep":{
             "derived_from":"Derived from niriss_pars-jumpstep 2023-09-07",
             "extra_keys":null,
diff --git a/crds/jwst/specs/miri_mask.rmap b/crds/jwst/specs/miri_mask.rmap
index c2fa46b0e..e0c8c47a8 100644
--- a/crds/jwst/specs/miri_mask.rmap
+++ b/crds/jwst/specs/miri_mask.rmap
@@ -9,12 +9,14 @@ header = {
     'name' : 'miri_mask.rmap',
     'observatory' : 'JWST',
     'parkey' : (('META.INSTRUMENT.DETECTOR', 'META.SUBARRAY.NAME', 'META.EXPOSURE.READPATT', 'META.EXPOSURE.NGROUPS'), ('META.OBSERVATION.DATE', 'META.OBSERVATION.TIME')),
-    'sha1sum' : '62525b89da8312e457d0368534911eea944fad5a',
+    'sha1sum' : '1366d1d6206db422c4acf9f82090165d172c42ed',
     'substitutions' : {
         'META.SUBARRAY.NAME' : {
             'GENERIC' : 'N/A',
         },
     },
+    'suffix' : 'mask',
+    'text_descr' : 'Bad Pixel Mask',
 }
 
 selector = Match({
diff --git a/crds/jwst/specs/miri_mask.spec b/crds/jwst/specs/miri_mask.spec
deleted file mode 100644
index 57f40bd38..000000000
--- a/crds/jwst/specs/miri_mask.spec
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-    'derived_from' : 'jwst_miri_mask_0002.rmap',
-    'file_ext' : '.fits',
-    'filekind' : 'MASK',
-    'filetype' : 'MASK',
-    'instrument' : 'MIRI',
-    'mapping' : 'REFERENCE',
-    'name' : 'jwst_miri_mask_0003.rmap',
-    'observatory' : 'JWST',
-    'parkey' : (('META.INSTRUMENT.DETECTOR', 'META.INSTRUMENT.FILTER'),),
-    'sha1sum' : '14e365f2d096081fb0d05ac2657f724e63253e31',
-    'suffix' : 'mask',
-    'text_descr' : 'Bad Pixel Mask',
-}
diff --git a/crds/jwst/specs/niriss_nrm.rmap b/crds/jwst/specs/niriss_nrm.rmap
new file mode 100644
index 000000000..164f8d97d
--- /dev/null
+++ b/crds/jwst/specs/niriss_nrm.rmap
@@ -0,0 +1,17 @@
+header = {
+    'derived_from' : 'niriss_mask.spec',
+    'file_ext' : '.fits',
+    'filekind' : 'nrm',
+    'filetype' : 'NRM',
+    'instrument' : 'NIRISS',
+    'mapping' : 'REFERENCE',
+    'name' : 'jwst_niriss_nrm.rmap',
+    'observatory' : 'JWST',
+    'parkey' : (('META.EXPOSURE.TYPE',), ('META.OBSERVATION.DATE', 'META.OBSERVATION.TIME')),
+    'sha1sum' : '6580001143ded5c25a97c3d10d9764a242569b16',
+    'suffix' : 'nrm',
+    'text_descr' : 'Numerical representation of the non-redundant mask in the pupil wheel of NIRISS.',
+}
+
+selector = Match({
+})
diff --git a/crds/jwst/tpns/niriss_nrm.tpn b/crds/jwst/tpns/niriss_nrm.tpn
new file mode 100644
index 000000000..2bf928a57
--- /dev/null
+++ b/crds/jwst/tpns/niriss_nrm.tpn
@@ -0,0 +1,2 @@
+# Commented out until INS is ready for strict model type validation:
+# META.MODEL_TYPE  H  S  R  MaskModel


Test patch:
diff --git a/test/core/test_reftypes.py b/test/core/test_reftypes.py
index e793e406a..715cb60f0 100644
--- a/test/core/test_reftypes.py
+++ b/test/core/test_reftypes.py
@@ -211,7 +211,7 @@ def test_reftypes_hst_get_filekinds(default_shared_state):
 def test_reftypes_jwst_get_filekinds(default_shared_state):
     types = reftypes.get_types_object("jwst")
     niriss_types = types.get_filekinds("niriss")
-    expected_types = ['abvegaoffset', 'all', 'amplifier', 'apcorr', 'area', 'dark', 'distortion', 'drizpars', 'extract1d', 'filteroffset', 'flat', 'gain', 'ipc', 'linearity', 'mask', 'pars-chargemigrationstep', 'pars-darkpipeline', 'pars-detector1pipeline', 'pars-image2pipeline', 'pars-jumpstep', 'pars-outlierdetectionstep', 'pars-rampfitstep', 'pars-sourcecatalogstep', 'pars-spec2pipeline', 'pars-tweakregstep', 'pars-undersamplecorrectionstep', 'pathloss', 'persat', 'photom', 'readnoise', 'regions', 'saturation', 'speckernel', 'specprofile', 'spectrace', 'specwcs', 'superbias', 'throughput', 'trapdensity', 'trappars', 'wavelengthrange', 'wavemap', 'wcsregions', 'wfssbkg']
+    expected_types = ['abvegaoffset', 'all', 'amplifier', 'apcorr', 'area', 'dark', 'distortion', 'drizpars', 'extract1d', 'filteroffset', 'flat', 'gain', 'ipc', 'linearity', 'mask', 'nrm', 'pars-chargemigrationstep', 'pars-darkpipeline', 'pars-detector1pipeline', 'pars-image2pipeline', 'pars-jumpstep', 'pars-outlierdetectionstep', 'pars-rampfitstep', 'pars-sourcecatalogstep', 'pars-spec2pipeline', 'pars-tweakregstep', 'pars-undersamplecorrectionstep', 'pathloss', 'persat', 'photom', 'readnoise', 'regions', 'saturation', 'speckernel', 'specprofile', 'spectrace', 'specwcs', 'superbias', 'throughput', 'trapdensity', 'trappars', 'wavelengthrange', 'wavemap', 'wcsregions', 'wfssbkg']
     assert sorted(niriss_types) == sorted(expected_types)