API for lenstest package

lenstest.lenstest Module

Utility routines for lens testing.

Documentation and examples are available at <https://lenstest.readthedocs.io>

Functions

sagitta(RoC, conic, X, Y[, A, D])

Calculate sagitta for conic surface at points X, Y.

XY_test_points(D[, N, on_grid])

Generate test points for lens test.

knife_polygon(s, phi, ds)

Create a polygon for a rotated knife edge.

circle_polygon(R[, X0, Y0])

Create a polygon for a circle.

draw_circle(R[, X0, Y0, color])

Draw a circle.

draw_lens(D, RoC[, middle])

Draw and fill a biconvex lens shape.

draw_mirror(D, RoC[, vertex])

Draw one face of a mirror.

conic_string(conic)

Create string that describes a conic value.

lenstest.ronchi Module

Generate ronchigrams for lens testing.

Documentation and examples are available at <https://lenstest.readthedocs.io>

Functions

gram(D, RoC, lpm, z_offset[, conic, phi, N, ...])

Create points that pass through a Ronchi ruling.

plot_gram(D, RoC, lpm, z_offset[, conic, ...])

Plot cross-sections on projection screen at a distance of RoC.

plot_ruling_and_screen(D, RoC, lpm, z_offset)

Plot cross-sections at Ronchi ruling and projection screen.

plot_lens_layout(D, f, z_offset)

Plot the Ronchi Lens Test Layout (4f system).

plot_mirror_layout(D, RoC, z_offset)

Plot the Ronchi Mirror Test Layout.

lenstest.foucault Module

Generate Foucault Knife Edge images (Foucaugrams) for mirror/lens testing.

Documentation and examples are available at <https://lenstest.readthedocs.io>

Functions

gram(D, RoC, x_offset, z_offset[, conic, ...])

Create points that miss the knife edge.

plot_gram(D, RoC, x_offset, z_offset[, ...])

Plot the Foucault knife edge image.

plot_knife_and_screen(D, RoC, x_offset, z_offset)

Plot the Foucault knife edge image.

plot_lens_layout(D, RoC, x_offset, z_offset)

Plot the Foucault knife edge experiment.

plot_mirror_layout(D, RoC, x_offset, z_offset)

Plot the Foucault knife edge experiment.