Using a class method in a NonlinearIOSystem · python-control/python-control · Discussion #630

Comment options

I figured it out. Apparently, "params" is required as an argument for the predprey_rhs method. Previously, I defined the parameters in init, and didn't include "params" as a predprey_rhs method. Once I added it back in, even though is wasn't used, the error went away. I still don't understand why it threw the TypeError, but no matter.

You must be logged in to vote

2 replies

@bnavigator

Comment options

"param is an optional dict" in the doc for updfnc is a bit misleading, I think. There is code relying on the presence of the parameter, even if it not used.

@murrayrm

Comment options