From 22442d4c52e8b1d9454a78badba120277fae9263 Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Wed, 14 Aug 2024 20:33:10 -0400 Subject: [PATCH] Add a smoke test for non-imaging Roman bands --- tests/test_roman.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test_roman.py b/tests/test_roman.py index 5a9adcb02b..8310bac88b 100644 --- a/tests/test_roman.py +++ b/tests/test_roman.py @@ -485,6 +485,20 @@ def test_roman_bandpass(): for key in nozp_bp: assert nozp_bp[key].zeropoint is None +@timer +def test_roman_nonimaging_bandpass(): + """Test the Roman non-imaging bandpasses for basic sanity. + """ + bp_imaging = galsim.roman.getBandpasses(AB_zeropoint=True) + bp_all = galsim.roman.getBandpasses(AB_zeropoint=True, include_nonimaging=True) + + # Check that the imaging bandpasses arein the all bandpasses + for key in bp_imaging: + assert key in bp_all + + assert 'Grism_0thOrder' in bp_all + assert 'Grism_1stOrder' in bp_all + assert 'SNPrism' in bp_all @timer def test_roman_detectors():