lightpipes
lightpipes copied to clipboard
A doc example of D4sigma seems to call Centroid instead of D4sigma
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)
Yes, you are right! I will change it. Thanks.