Skip to content

Commit

Permalink
BUG: propagation shouldn't affect wavefront focal length
Browse files Browse the repository at this point in the history
  • Loading branch information
andykee committed Dec 21, 2023
1 parent a6472dc commit 0f003e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lentil/propagate.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def propagate_fft(wavefront, pixelscale, shape=None, oversample=2,

out = Wavefront.empty(wavelength=prop_wavelength,
pixelscale = pixelscale/oversample,
focal_length=wavefront.focal_length,
shape = shape_out,
ptype = ptype_out)

Expand Down Expand Up @@ -185,6 +186,7 @@ def propagate_dft(wavefront, pixelscale, shape=None, prop_shape=None,

out = Wavefront.empty(wavelength=wavefront.wavelength,
pixelscale = du/oversample,
focal_length=wavefront.focal_length,
shape = shape_out,
ptype = ptype_out)

Expand Down

0 comments on commit 0f003e4

Please sign in to comment.