zarr-python
zarr-python copied to clipboard
[WIP] getitems / setitems for BaseStore
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)
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
Codecov Report
Merging #1040 (7f3e5a4) into main (761bbed) will decrease coverage by
0.17%. The diff coverage is100.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%> (ø) |
Any chance of getting the codecov back up, @d-v-b ?
This is going to take a bit, since it kind of spiraled into a potential refactoring of how slicing works :cold_sweat:
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 🙂
@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?
@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.
happy to close!