Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of arguments integrate func #19

Merged
merged 10 commits into from
Jan 9, 2023

Conversation

twallema
Copy link
Owner

@twallema twallema commented Jan 9, 2023

  • I have checked to ensure there aren't other open Pull Requests for the same update/change
  • I have updated the documentation accordingly.

Describe your fixes/additions/changes

This PR addresses Issue #9: the names of the states and parameters defined by the user in his/her model class had to provided in exactly the same order in the integrate/compute_rates function defined by the user. By providing the parameters and states internally as keyworded arguments to the integrate/compute_rates function, this need has been relaxed.

However, the user should still make sure the differentials of his integrate function (for ODEs) match the order of the state names provided. I choose not to return the differentials as a dictionary (for now), as I still have to figure out if using dictionaries with numba is sufficiently easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant