rayoptics.codev.cmdproc module
Functions to read a CODE V .seq file and populate a sequential model
- read_lens(filename, **kwargs)[source]
given a CODE V .seq filename, return an OpticalModel
- Parameters:
filename (pathlib.Path) – a CODE V .seq file path
kwargs (dict) – keyword args passed to the reader functions
- Returns:
an OpticalModel instance and a info tuple
- aperture_data(opm, tla, qlist, dlist)[source]
add aperture data, either creating a new aperture or modifying the last
- aperture_data_general(opm, tla, qlist, dlist)[source]
handle the general aperture commands, add to end of list
- aperture_offset(opm, tla, qlist, dlist)[source]
handle the aperture offset commands, assume last aperture in list
- class CVGlassHandler(filename)[source]
Bases:
GlassHandlerBase
Handle glass restoration during CODEV import.
This class relies on GlassHandlerBase to provide most of the functionality needed to find the requested glass or a substitute.