zarr-python icon indicating copy to clipboard operation
zarr-python copied to clipboard

[WIP] getitems / setitems for BaseStore

Open d-v-b opened this issue 3 years ago • 5 comments

This PR adds getitems and setitems methods to BaseStore, and removes some redundant hasattr(store, 'getitems') calls. This makes FSStore a bit less special and hopefully would make async array methods a little easier to engineer.

Tests and docs are WIP

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
  • [ ] GitHub Actions have all passed
  • [ ] Test coverage is 100% (Codecov passes)

d-v-b avatar May 26 '22 22:05 d-v-b

Hello @d-v-b! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2022-05-28 10:29:55 UTC

pep8speaks avatar May 26 '22 22:05 pep8speaks

Codecov Report

Merging #1040 (7f3e5a4) into main (761bbed) will decrease coverage by 0.17%. The diff coverage is 100.00%.

:exclamation: Current head 7f3e5a4 differs from pull request most recent head 9f74667. Consider uploading reports for the commit 9f74667 to get more accurate results

@@            Coverage Diff             @@
##             main    #1040      +/-   ##
==========================================
- Coverage   99.94%   99.77%   -0.18%     
==========================================
  Files          34       34              
  Lines       13847    13873      +26     
==========================================
+ Hits        13840    13842       +2     
- Misses          7       31      +24     
Impacted Files Coverage Δ
zarr/_storage/store.py 100.00% <100.00%> (ø)
zarr/core.py 96.83% <100.00%> (-3.17%) :arrow_down:
zarr/storage.py 100.00% <100.00%> (ø)
zarr/tests/test_storage.py 100.00% <100.00%> (ø)

codecov[bot] avatar May 26 '22 22:05 codecov[bot]

Any chance of getting the codecov back up, @d-v-b ?

joshmoore avatar Jun 23 '22 06:06 joshmoore

This is going to take a bit, since it kind of spiraled into a potential refactoring of how slicing works :cold_sweat:

d-v-b avatar Jun 23 '22 11:06 d-v-b

Thanks for working on this Davis! 🙏

We are taking another pass at doing this in PR ( https://github.com/zarr-developers/zarr-python/pull/1131 ). If you have time to look, would welcome your feedback there 🙂

jakirkham avatar Oct 07 '22 18:10 jakirkham

@madsbk , could you please look over this and see if there are things we need to still include from it since PR ( https://github.com/zarr-developers/zarr-python/pull/1131 ) has been merged?

jakirkham avatar Jun 22 '23 17:06 jakirkham

@d-v-b - what do you think about closing this. The store api is due to change significantly in v3 so I'm not sure this is worth finishing.

jhamman avatar Dec 07 '23 22:12 jhamman

happy to close!

d-v-b avatar Dec 07 '23 22:12 d-v-b