Update the interface to the method generators.
Old way of generating code: method = Method(params) code = method(component_id) New way of generating code: method = Method(component_id, params) code = method.generate(*solver_hooks) Also, document all the user-supplied context which a method expects.
Loading
-
I should explain this a little more.
The intention behind the change in the interface is that solver generators are expected to query the Method before generating code (using the
implicit_expression
function). Thus, solver generators need to view the Method after it has been constructed but before the code has been generated. As a result, all the parameters necessary for the creation of the Method will need to be passed into the method's constructor.
Please register or sign in to comment