From 0857e7aa2bfcb52f0fbcbf7759911018f10f1f0b Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Thu, 18 Jul 2024 12:23:26 -0400 Subject: [PATCH] Stop special casing dispersive elements --- galsim/roman/roman_bandpass.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/galsim/roman/roman_bandpass.py b/galsim/roman/roman_bandpass.py index 74bfbdb04f..0992ef8d0a 100644 --- a/galsim/roman/roman_bandpass.py +++ b/galsim/roman/roman_bandpass.py @@ -134,10 +134,6 @@ def getBandpasses(AB_zeropoint=True, default_thin_trunc=True, **kwargs): bandpass_dict = {} # Loop over the bands. for index, bp_name in enumerate(data.dtype.names[1:]): - # Need to skip the prism and grism (not used for weak lensing imaging). - if bp_name=='Grism_1stOrder' or bp_name=='Grism_0thOrder': - continue - # Initialize the bandpass object. # Convert effective area units from m^2 to cm^2. # Also divide by the nominal Roman collecting area to get a dimensionless throughput. @@ -154,10 +150,9 @@ def getBandpasses(AB_zeropoint=True, default_thin_trunc=True, **kwargs): bp = bp.withZeropoint('AB') # Store the sky level information as an attribute. - if bp_name!='SNPrism': - bp._ecliptic_lat = ecliptic_lat - bp._ecliptic_lon = ecliptic_lon - bp._sky_level = sky_data[2+index, :] + bp._ecliptic_lat = ecliptic_lat + bp._ecliptic_lon = ecliptic_lon + bp._sky_level = sky_data[2+index, :] # Add it to the dictionary. bp.name = bp_name if bp_name != 'W149' else 'W146'