Skip to content

Using a class method in a NonlinearIOSystem #630

Answered by dkunz49
dkunz49 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bnavigator
Comment options

@murrayrm
Comment options

Answer selected by bnavigator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #629 on June 10, 2021 19:31.