Skip to content

Use ensure_ndarray to view chunk as an array #360

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

Merged
merged 3 commits into from
Dec 10, 2018
Merged

Use ensure_ndarray to view chunk as an array #360

merged 3 commits into from
Dec 10, 2018

Conversation

jakirkham
Copy link
Member

@jakirkham jakirkham commented Dec 10, 2018

Follow-up to PR ( #352 )

Simplifies the process of constructing an ndarray to view the chunk data when writing the result to a destination. Also removes the last usage of np.frombuffer from library code (still used in examples, tests, and docs).

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/tutorial.rst
  • Changes documented in docs/release.rst
  • Docs build locally (e.g., run tox -e docs)
  • AppVeyor and Travis CI passes
  • Test coverage is 100% (Coveralls passes)

Simplifies the process of constructing an `ndarray` to view the chunk
data when writing the result to a destination.
@jakirkham jakirkham requested a review from alimanfoo December 10, 2018 05:36
@alimanfoo alimanfoo added this to the v2.3 milestone Dec 10, 2018
@alimanfoo alimanfoo merged commit d747f4c into zarr-developers:master Dec 10, 2018
@alimanfoo
Copy link
Member

Great, thanks!

@jakirkham jakirkham deleted the use_ensure_ndarray_write branch December 10, 2018 14:52
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.

2 participants