You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Track external registrations of Operations, so they can be injected into generated functions.This solves the issue where an external package may wish to use a function it defines "my_func" as an Operation, and so calls "@register my_func(x)" on it. However, when ModelingToolkit eventually generates a function including that Operation, GeneralizedGenerated renames all calls to the function to "(ModelingToolkit).my_func", which does not exist because that function was not defined in the ModelingToolkit namespace. Instead, we track all the functions that are registered and which module they come from, and use that to re-write the generated functions with the appropriate module.
0 commit comments