solves.solve_manager
Solve Manager Module
Manages the application of solves to an optic.
Kramer Harrison, 2025
Classes
|
Manages the application of solves to an optic. |
- class SolveManager(optic)[source]
Manages the application of solves to an optic.
- Parameters:
optic (Optic) – The optic object
- solves
A list of solve instances.
- Type:
list
- add(solve_type, surface_idx=None, *args, **kwargs)[source]
Adds a solve instance to the list of solves.
- Parameters:
solve_type (str) – The type of solve to create.
surface_idx (int) – The index of the surface.
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- classmethod from_dict(optic, data)[source]
Creates a SolveManager from a dictionary representation.
- Parameters:
optic (Optic) – The optic object.
data (dict) – The dictionary representation of the solve manager.
- Returns:
The solve manager.
- Return type: