Skip to content

Commit

Permalink
Stop special casing dispersive elements
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Jul 18, 2024
1 parent b37fc91 commit 0857e7a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions galsim/roman/roman_bandpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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'
Expand Down

0 comments on commit 0857e7a

Please sign in to comment.