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

Return numpy arrays from Rust #155

Open
wants to merge 3 commits into
base: fastsim-2
Choose a base branch
from
Open

Return numpy arrays from Rust #155

wants to merge 3 commits into from

Conversation

kylecarow
Copy link
Collaborator

@kylecarow kylecarow commented Sep 13, 2024

@calbaker check this out!!!

I think setting using numpy arrays already worked, so this is something we can do now:
image

@kylecarow
Copy link
Collaborator Author

It seems some pymethods that return Vecs (e.g. RustCycle::get_dist_m) should be changed to return numpy arrays as well, so they don't become lists on the Python side. @calbaker thoughts?

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