Skip to content

Commit

Permalink
Merge pull request #195 from douglase/fix_direct_pixscl
Browse files Browse the repository at this point in the history
Fix propagate_direct pixel scale units, as noted in #194
  • Loading branch information
mperrin committed Oct 4, 2016
2 parents 5100d12 + 4924cbf commit 0715741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poppy/fresnel.py
Expand Up @@ -507,7 +507,7 @@ def fov(self, value):
@utils.quantity_input(z=u.meter)
def propagate_direct(self, z):
"""
Implements the direct propagation algorithm described in Andersen & Enmark (2011). Works best for
Implements the direct propagation algorithm as described in Andersen & Enmark (2011). Works best for
far field propagation. Not part of the Gaussian beam propagation method.
Parameters
Expand All @@ -522,7 +522,7 @@ def propagate_direct(self, z):
z_direct = z.to(u.m).value
y, x = self.coordinates()
k = np.pi * 2.0 / self.wavelength.to(u.meter).value
s = self.n * self.pixelscale
s = self.n*u.pix * self.pixelscale
_log.debug(
"Propagation Parameters: k={0:0.2e},".format(k) + "S={0:0.2e},".format(s) + "z={0:0.2e},".format(z_direct))

Expand Down

0 comments on commit 0715741

Please sign in to comment.