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.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy