Skip to content

Commit

Permalink
Fix another place where photon_ops could be None or []
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed May 17, 2023
1 parent 176cb16 commit 8726f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galsim/chromatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def drawImage(self, bandpass, image=None, integrator='quadratic', **kwargs):

# If there are photon ops, they'll probably need valid wavelengths, so add
# WavelengthSampler as the first op in the list.
if 'photon_ops' in kwargs:
if kwargs.get('photon_ops', None):
wave_sampler = WavelengthSampler(self.SED, bandpass)
kwargs['photon_ops'] = [wave_sampler] + kwargs['photon_ops']

Expand Down

0 comments on commit 8726f31

Please sign in to comment.