Skip to content

Commit

Permalink
Revert "more flexible matching of IFU tag for new GNIRS SLIT header v…
Browse files Browse the repository at this point in the history
…alues (#406)" (#407)

This reverts commit ed28727.
  • Loading branch information
olyoberdorf committed Oct 26, 2022
1 parent ed28727 commit 5e72ba7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion gemini_instruments/gnirs/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _type_spect(self):
slit = self.phu.get('SLIT', '').lower()
grat = self.phu.get('GRATING', '')
prism = self.phu.get('PRISM', '')
if 'ifu' in slit:
if slit == 'ifu':
tags.add('IFU')
elif ('arcsec' in slit or 'pin' in slit) and 'mm' in grat:
if 'MIR' in prism:
Expand Down
6 changes: 0 additions & 6 deletions gemini_instruments/gnirs/tests/test_gnirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,5 @@ def test_ra_dec_from_text():
assert ad.target_dec() == pytest.approx(24.345277777777778)


@pytest.mark.dragons_remote_data
@pytest.mark.parametrize("ad", ["N20220918S0040.fits"], indirect=True)
def test_ifu_tag(ad):
assert("IFU" in ad.tags)


if __name__ == "__main__":
pytest.main()

0 comments on commit 5e72ba7

Please sign in to comment.