Skip to content

Commit

Permalink
add MIRI internal oversized pupil stop for all LRS slit simulations, …
Browse files Browse the repository at this point in the history
…including imaging filters
  • Loading branch information
mperrin committed Feb 23, 2024
1 parent 9240966 commit 657d70a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webbpsf/webbpsf_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1983,9 +1983,15 @@ def make_fqpm_wrapper(name, wavelength):
name=self.pupil_mask,
flip_y=True, shift_x=shift_x, shift_y=shift_y, rotation=rotation)
optsys.planes[-1].wavefront_display_hint = 'intensity'
elif self.pupil_mask == 'P750L':
elif self.pupil_mask == 'P750L' or self.image_mask == 'LRS slit':

Check warning on line 1986 in webbpsf/webbpsf_core.py

View check run for this annotation

Codecov / codecov/patch

webbpsf/webbpsf_core.py#L1986

Added line #L1986 was not covered by tests
# This oversized pupil stop is present on all MIRI imaging filters, thus should
# implicitly be included in all MIRI imager calculations, but in practice for
# normal imaging modes, the system pupil stop is defined by the OTE primary, so this
# stop has no effect. However for any light passing through the LRS slit, the spatial
# filtering leads to diffractive spreading in the subsequen pupil which this should
# be included for, in order to model slit losses correctly.
optsys.add_pupil(transmission=self._datapath + "/optics/MIRI_LRS_Pupil_Stop.fits.gz",
name=self.pupil_mask,
name=self.pupil_mask if self.pupil_mask else 'MIRI internal pupil stop',
flip_y=True, shift_x=shift_x, shift_y=shift_y, rotation=rotation)
optsys.planes[-1].wavefront_display_hint = 'intensity'
else: # all the MIRI filters have a tricontagon outline, even the non-coron ones.
Expand Down

0 comments on commit 657d70a

Please sign in to comment.