Skip to content
Commit d74fe37b authored by Matt Wala's avatar Matt Wala
Browse files

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.
parent 1c8e1fb3
Loading
Loading
Loading
Loading
  • Author Maintainer

    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.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment