solves.base#

Base Solve Module

Defines the base class for solve operations.

Kramer Harrison, 2025

Classes

BaseSolve()

Applies a solve operation.

class BaseSolve[source]#

Applies a solve operation.

This method should be implemented by subclasses to define the specific behavior of the solve operation.

Raises:

NotImplementedError – If the method is not implemented by the subclass.

abstractmethod apply()[source]#

Applies the solve operation to the optic.

classmethod from_dict(optic, data)[source]#

Creates a solve from a dictionary representation.

Parameters:
  • optic (Optic) – The optic object.

  • data (dict) – The dictionary representation of the solve.

Returns:

The solve.

Return type:

BaseSolve

to_dict()[source]#

Returns a dictionary representation of the solve.

Returns:

A dictionary representation of the solve.

Return type:

dict