Skip to content

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

@gimli2

Description

@gimli2

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions