diff --git a/python/lsst/ts/wep/instrument.py b/python/lsst/ts/wep/instrument.py index 67de3b4eb..a4a5f8d43 100644 --- a/python/lsst/ts/wep/instrument.py +++ b/python/lsst/ts/wep/instrument.py @@ -871,7 +871,7 @@ def _getIntrinsicZernikesTACached( # Offset the optic optic = self.batoidOffsetOptic - batoidModel = batoidModel.withLocallyShiftedOptic(optic, offset) + shiftedModel = batoidModel.withLocallyShiftedOptic(optic, offset) # Get the wavelength if len(self.wavelength) > 1: @@ -881,7 +881,7 @@ def _getIntrinsicZernikesTACached( # Get the off-axis model Zernikes in wavelengths zkIntrinsic = batoid.zernikeTA( - batoidModel, + shiftedModel, *np.deg2rad([xAngle, yAngle]), wavelength, jmax=jmax,