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

Allow KeyData.ndarray to read into a pre-allocated array #307

Merged
merged 2 commits into from May 6, 2022

Conversation

philsmt
Copy link
Contributor

@philsmt philsmt commented Apr 21, 2022

Noticed on the side while discussing AGIPD's memory problems during corrections, it' fairly easy to allow KeyData.ndarray() to accept a pre-allocated array.

I decided to only check for the correct shape rather than dtype, as Dataset.read_direct's semantics allow for type coercion during reading.

@philsmt philsmt added the enhancement New feature or request label Apr 21, 2022
@philsmt philsmt requested a review from takluyver April 21, 2022 12:34
@takluyver takluyver added this to the 1.12 milestone May 6, 2022
@takluyver takluyver merged commit b16f6ad into master May 6, 2022
@takluyver takluyver deleted the feat/ndarray-out-argument branch May 6, 2022 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants