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

Bind PN BinaryTrajectories in Python #6366

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

nilsvu
Copy link
Member

@nilsvu nilsvu commented Nov 7, 2024

Proposed changes

Useful to test pipeline code like ecc-control.

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@nilsvu nilsvu requested a review from knelli2 November 7, 2024 21:57
@nilsvu nilsvu added the cli/pybindings Command line interface & Python bindings label Nov 7, 2024
Comment on lines 32 to 35
.def(
"positions",
[](const BinaryTrajectories& binary_trajectories,
const py::array_t<double> time) -> py::array_t<double> {
Copy link
Contributor

Choose a reason for hiding this comment

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

If you're already going to be doing this in C++, why not just add it to the BinaryTrajectories class.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added commits for this

Copy link
Contributor

@knelli2 knelli2 left a comment

Choose a reason for hiding this comment

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

Code looks good except for the module import errors

@nilsvu
Copy link
Member Author

nilsvu commented Nov 11, 2024

@knelli2 fixed

@knelli2
Copy link
Contributor

knelli2 commented Nov 11, 2024

Ignoring unrelated test timeouts

@knelli2 knelli2 merged commit c3c9143 into sxs-collaboration:develop Nov 11, 2024
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli/pybindings Command line interface & Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants