lightpipes icon indicating copy to clipboard operation
lightpipes copied to clipboard

A doc example of D4sigma seems to call Centroid instead of D4sigma

Open gimli2 opened this issue 2 years ago • 1 comments

It seems that there is a typo on this line: https://github.com/opticspy/lightpipes/blob/master/LightPipes/core.py#L115C9-L115C29 There is Centroid(F) instead of Sigma(F).

Probably it should look something like this:

from LightPipes import *
wavelength = 500*nm
size = 25*mm
N = 500
F = Begin(size, wavelength, N)
F = CircAperture(F, 2*mm, x_shift=5*mm, y_shift=3*mm)
F = Fresnel(F, 10*m)
sx, sy = D4sigma(F)

gimli2 avatar Jul 10 '23 16:07 gimli2

Yes, you are right! I will change it. Thanks.

FredvanGoor avatar Jul 14 '23 20:07 FredvanGoor