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 std::vectors #1458

Merged
merged 1 commit into from
Dec 29, 2020
Merged

return numpy arrays from std::vectors #1458

merged 1 commit into from
Dec 29, 2020

Conversation

stevengj
Copy link
Collaborator

Fixes the issue discussed in #1456 (comment)

@stevengj
Copy link
Collaborator Author

Passes tests locally. Now if we do

[x,y,z,w] = sim.get_array_metadata(dft_cell=near_fields)
type(x),type(y),type(z),type(w)

I get

(numpy.ndarray, numpy.ndarray, numpy.ndarray, numpy.ndarray)

as desired.

@stevengj stevengj merged commit e319dad into master Dec 29, 2020
@stevengj stevengj deleted the vector2npy branch December 29, 2020 20:27
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
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