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

Fix arguments order in ode.dx_dt #66

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Fix arguments order in ode.dx_dt #66

merged 1 commit into from
Jan 18, 2024

Conversation

flferretti
Copy link
Collaborator

@flferretti flferretti commented Jan 18, 2024

This PR fixes an issue caused by #64, for which the disposition of the variable t was changed. As a consequence, when dx_dt is called inside the closures of ode_integration the argument physics_model was interpreted as t.

@flferretti flferretti self-assigned this Jan 18, 2024
Copy link
Member

@diegoferigo diegoferigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep changing the order of parameters generally breaks APIs. While JaxSim uses as much as possible kwargs when calling functions / methods, it is not 100% resilient to these breaking changes.

As soon as we are happy with the high-level APIs, we should start thinking of a proper test suite to catch these errors earlier.

@flferretti flferretti merged commit eb3303c into main Jan 18, 2024
14 checks passed
@flferretti flferretti deleted the fix/dxdt_kwargs branch January 18, 2024 13:40
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.

None yet

2 participants