Solver¶
-
class
imgreg.util.solver.
Solver
(parameters: Optional[Set[imgreg.util.params.Parameter]] = None)[source]¶ Bases:
object
Interface for a Solvermodel constructed from a set of parameters.
Constructs a dependency graph for the Parameters of the model and allows for lazy evaluation of the Parameters.
Notes
The state of this class is cached, when a parameter is changed on which later states depend, the properties ascendant to said parameter are removed from the cache. Solver._get_dep_graph() allows access to the internal dependency graph representation.
Methods
__init__
([parameters])Initialize self.
display
(param_list[, title])Fancy plot functionality for registered ImageParameters.
dot_graph
([node_args_func])Return a dot graph representation of the solver model.
-
display
(param_list: Sequence[Union[enum.Enum, imgreg.util.params.ImageParameter]], title: Optional[str] = None) → None[source]¶ Fancy plot functionality for registered ImageParameters.
- Parameters
- plotlistsequence
sequence, to access the ImageParameters registered in solver
- titlestr
str, contains title of overall plot
-