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

ORM: Register numpy.ndarray with the to_aiida_type to ArrayData #6149

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Oct 15, 2023

This will allow numpy.ndarray to be passed to process inputs that add the to_aiida_type serializer and expect an ArrayData. The single dispatch will automatically convert the numpy array to an ArrayData instance.

@sphuber sphuber force-pushed the feature/to-aiida-type-numyp-array branch from 0a9d5ba to 1e6ac17 Compare October 15, 2023 11:32
This will allow `numpy.ndarray` to be passed to process inputs that add
the `to_aiida_type` serializer and expect an `ArrayData`. The single
dispatch will automatically convert the numpy array to an `ArrayData`
instance.
@sphuber sphuber force-pushed the feature/to-aiida-type-numyp-array branch from 1e6ac17 to bbcbf50 Compare October 19, 2023 13:59
@sphuber sphuber merged commit d8dd776 into aiidateam:main Oct 19, 2023
18 checks passed
@sphuber sphuber deleted the feature/to-aiida-type-numyp-array branch October 19, 2023 14:35
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