Editors¶
Each editor object reads a ZOS-API editor into dictionaries and writes those dictionaries back.
OpticStudioSession calls these objects from its public methods.
SYSTEM, LENS, and MULTI are the column lists those methods use.
The pages include their descriptions and omit the ZOS-API object values.
System Explorer¶
System Explorer setting groups.
- row_editor(name: str) tuple[str, Rows]¶
Return the SystemData property and row list for one editable group.
- Parameters:
name (str) –
fieldsorwavelengths.- Returns:
The property name on SystemData, and the rows to edit.
- Return type:
- Raises:
ValueError –
nameis not a setting group, or that group has no row list.
Lens Data Editor¶
Lens Data Editor columns and row edits.
- class LensData(attributes: tuple[Attribute, ...])¶
Lens Data Editor columns copied for every surface.
Parameter columns depend on the surface type.
read()includes the active ones.- edit(editor, action: str, number: int | None, values: dict[str, object] | None) None¶
Change, insert, or remove one surface.
addinserts atnumberand then writesvalues.typechanges the surface type before the other keys.parametersmaps column names such asPar1to new values.- Parameters:
- Raises:
ValueError – The action, number, or values cannot be applied.
- read(editor, surface: int | None = None) dict[str, object]¶
Read every surface, or one surface.
- Parameters:
editor – The ZOS-API lens data editor.
surface (int | None) – One surface number.
Nonereads every surface. 0 is the object surface.
- Returns:
surfaces, or the one requested surface. Each surface includesparametersfor the columns its type uses. The image surface omitsthicknessandthickness_solve.tceandtce_solveare omitted when the surface does not use the TCE column.- Return type:
- Raises:
ValueError –
surfaceis outside the editor.
- LENS¶
Columns copied from every Lens Data Editor surface.
Multi-Configuration Editor¶
Multi-Configuration Editor operands and configuration columns.
- class MultiConfiguration¶
Multi-Configuration Editor operands and configuration columns.
Parameter columns and configuration cells depend on the operand type.
- edit(editor, section: str, action: str, number: int | None, values: dict[str, object] | None) None¶
Change one operand or one configuration.
typechanges the operand type before parameters and configuration cells are checked.- Parameters:
- Raises:
ValueError – The section, action, number, or values cannot be applied.
- read(editor, operand: int | None = None) dict[str, object]¶
Read the editor, or one operand.
- Parameters:
editor – The ZOS-API multi-configuration editor.
operand (int | None) – One 1-based operand number.
Nonereads the whole editor.
- Returns:
current,configurations, andoperands, or the one requested operand.- Return type:
- Raises:
ValueError –
operandis outside the editor.
- MULTI¶
Multi-Configuration Editor operands and configuration columns.