Skip to content

Commit fab3a2c

Browse files
committed
Allow for all (non-imaging) Roman bands internally
By default, we don't want to return the non-imaging bands when a user asks for it by calling galsim.roman.getBandpasses(). But, in the internal calls, it should get all the bands so that if the user asks for a non-imaging bandpass through other methods, they should be able to get them.
1 parent aab609d commit fab3a2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

galsim/roman/roman_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def buildBandpass(self, config, base, logger):
112112
from ..deprecated import depr
113113
depr('W149', 2.5, 'W146', 'Note: this is to match current Roman filter naming schemes')
114114
name = 'W146'
115-
bandpass = getBandpasses()[name]
115+
bandpass = getBandpasses(include_all_bands=True)[name]
116116

117117
return bandpass, safe
118118

@@ -200,7 +200,7 @@ def setup(self, config, base, image_num, obj_num, ignore, logger):
200200

201201
def getBandpass(self, filter_name):
202202
if not hasattr(self, 'all_roman_bp'):
203-
self.all_roman_bp = getBandpasses()
203+
self.all_roman_bp = getBandpasses(include_all_bands=True)
204204
return self.all_roman_bp[filter_name]
205205

206206
def addNoise(self, image, config, base, image_num, obj_num, current_var, logger):

galsim/roman/roman_psfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def _get_single_PSF(SCA, bandpass, SCA_pos, pupil_bin,
335335
aper=aper, gsparams=gsparams)
336336
if n_waves is not None:
337337
# To decide the range of wavelengths to use, check the bandpass.
338-
bp_dict = getBandpasses()
338+
bp_dict = getBandpasses(include_all_bands=True)
339339
bp = bp_dict[bandpass]
340340
PSF = PSF.interpolate(waves=np.linspace(bp.blue_limit, bp.red_limit, n_waves),
341341
oversample_fac=1.5)

0 commit comments

Comments
 (0)