lava-optimization icon indicating copy to clipboard operation
lava-optimization copied to clipboard

ProcessBuilder: Generic module to build processes within code

Open phstratmann opened this issue 2 years ago • 0 comments

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)

phstratmann avatar Sep 27 '22 17:09 phstratmann