Skip to content

Commit

Permalink
Add a smoke test for non-imaging Roman bands
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Aug 15, 2024
1 parent 939e964 commit c1bca00
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_roman.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_all_bands=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():
Expand Down

0 comments on commit c1bca00

Please sign in to comment.