Skip to content

Commit

Permalink
Merge pull request #595 from braingram/dep_warnings
Browse files Browse the repository at this point in the history
remove use of deprecated _get_optical_system
  • Loading branch information
mperrin authored Dec 11, 2023
2 parents 6b4c6c0 + 6073662 commit 8203eb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poppy/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def calc_psf(self, outfile=None, source=None, nlambda=None, monochromatic=None,

# ---- now at last, actually do the PSF calc:
# instantiate an optical system using the current parameters
self.optsys = self._get_optical_system(fov_arcsec=fov_arcsec, fov_pixels=fov_pixels,
self.optsys = self.get_optical_system(fov_arcsec=fov_arcsec, fov_pixels=fov_pixels,
fft_oversample=fft_oversample, detector_oversample=detector_oversample,
options=local_options)
self._check_for_aliasing(wavelens)
Expand Down Expand Up @@ -761,7 +761,7 @@ def display(self):
# (specifically auto-selected pupils based on filter selection)
wavelengths, _ = self._get_weights(nlambda=1)
self._validate_config(wavelengths=wavelengths)
optsys = self._get_optical_system()
optsys = self.get_optical_system()
optsys.display(what='both')
if old_no_sam is not None:
self.options['no_sam'] = old_no_sam
Expand Down

0 comments on commit 8203eb8

Please sign in to comment.