Skip to content

Commit

Permalink
wfe_drift bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Mar 15, 2018
1 parent 7f0876a commit 7a7e4d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pynrc/obs_nircam.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,9 @@ def _gen_ref(self, verbose=False):
module=self.module, wind_mode=wind_mode, xpix=xpix, ypix=ypix,
fov_pix=fov_pix, oversample=oversample, opd=opd,
offset_r=offset_r, offset_theta=offset_theta,
wfe_drift=self.wfe_ref_drift, bar_offset=self.bar_offset)
wfe_drift=0, bar_offset=self.bar_offset)
self.nrc_ref = nrc
self.nrc_ref.wfe_drift = self.wfe_ref_drift


def _gen_psf_list(self):
Expand Down
2 changes: 1 addition & 1 deletion pynrc/pynrc_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ def update_psf_coeff(self, fov_pix=None, oversample=None,
wfe_cf = wfed_coeff(self.bandpass, **wfe_kwargs)
cf_fit = wfe_cf.reshape([wfe_cf.shape[0], -1])
cf_mod = jl_poly(np.array([wfe_drift]), cf_fit)
cf_mod = cf_mod.reshape(self._psf_coeff.shape)
cf_mod = cf_mod.reshape(self._psf_coeff_bg.shape)
self._psf_coeff_bg += cf_mod

else:
Expand Down

0 comments on commit 7a7e4d5

Please sign in to comment.