-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Create a Base store class for Zarr Store (update) #789
Merged
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
9d6d07d
fix conflicts
grlee77 1e5ed1a
cleanup naming
Carreau 6ca9631
zip move
Carreau b3db0f1
fix erasability test
Carreau 1db3be2
test for warning
Carreau 8d28678
please flake
Carreau b5240e4
remove uncovered lines
Carreau b7aa2d8
remove uncovered lines in tests
Carreau 30afcbb
pragma no cover for exceptional case
Carreau 8136713
minor docstring fixes
grlee77 2a95219
Merge branch 'master' into base-store-v2
grlee77 e38a968
pep8 fix
grlee77 eb2a6da
avoid NumPy 1.21.0 due to https://github.com/numpy/numpy/issues/19325
grlee77 3c7e90e
Merge remote-tracking branch 'upstream/master' into base-store-v2
grlee77 e2c57a9
Merge remote-tracking branch 'upstream/master' into base-store-v2
grlee77 6796f79
move Store class and some helper functions to zarr._storage.store
grlee77 d0a1b00
BUG: ABSStore should inherit from Store
grlee77 3d39d8c
pep8 fix
grlee77 c2d6159
Merge branch 'master' into base-store-v2
joshmoore 5f7c7f5
TST: make CustomMapping a subclass of Store
grlee77 7e1e92a
Merge remote-tracking branch 'upstream/master' into base-store-v2
grlee77 b72be38
Merge branch 'base-store-v2' of github.com:grlee77/zarr-python into b…
grlee77 52deac0
update version mentioned in Store docstring
grlee77 a7cc4db
update version mentioned in warning message
grlee77 c59f3be
use Store._ensure_store in Attributes class
grlee77 a9a98a9
TST: add Attributes test case ensuring store gets coerced to a Store
grlee77 0a6d923
use Store._ensure_store in normalize_store_arg
grlee77 a40ed54
TST: make sure high level creation functions also work when passed a …
grlee77 3fa6f51
TST: add test case with group initialized from dict
grlee77 0f34ad2
TST: add test case with Array initialized from dict
grlee77 52fe871
change CustomMapping back to type object, not Store
grlee77 cb1c5f0
pep8 fixes
grlee77 6ce0981
update/fix new hierarchy test case to complete code coverage
grlee77 bb2e8f9
Merge remote-tracking branch 'origin/master' into pr-789
joshmoore 82f7376
create a BaseStore parent for Store
grlee77 278037e
flake8
grlee77 57a51c5
Merge remote-tracking branch 'upstream/master' into base-store-v2
grlee77 06086dc
restore is_erasable check to rmdir function
grlee77 487b477
Merge branch 'master' into base-store-v2
joshmoore File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker for getting this into a 2.11 alpha build but is the
hasattr
not now redundant?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite yet. There are calls to
rmdir
from_init_array_metadata
(viainit_array
which still allows a MutableMapping for the store). This is why I put store asStoreLike
in the type annotation, but then I had to add "# type: ignore" on this line or mypy complained that MutableMappings do not have anis_erasable
attribute.