lava-optimization
lava-optimization copied to clipboard
ProcessBuilder: Generic module to build processes within code
Objective of issue: In the repo, Processes are produced on the fly in the SolverProcessBuilder.
That's a feature which should not be hidden in the optimization library, but should be a generic tool in Lava.
In addition, in builder.py, the decorators are currently replaced in this way:
setattr(solver_model, "implements_process", self.solver_process) # Get requirements of parent class super_res = solver_model.required_resources.copy() # Set new requirements not overwriting parent class requirements. setattr(solver_model, "required_resources", super_res + requirements) setattr(solver_model, "implements_protocol", protocol)
That will work with the current decorators; but future pushes to the decorators may break it.
Lava version:
- [x] 0.3.0 (feature release)