-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
more extensive api
x store
testing
#2447
Open
d-v-b
wants to merge
46
commits into
zarr-developers:main
Choose a base branch
from
d-v-b:fix/open-v2-array-remotestore
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
e309415
add filenotfounderror to tupe of handled errors
d-v-b 0045351
revive remote store test fixture, and parameterize api tests with all…
d-v-b d670b30
properly construct remotestore instance in test fixture
d-v-b f6d35fb
add filenotfounderror to tuple of handled errors
d-v-b 311efaf
propagate mode kwarg into open_group
d-v-b 73911b7
propagate mode kwarg into open_group
d-v-b 9917343
xfail zipstore
d-v-b 90df740
revert removal of type ignores
d-v-b 3c3099a
speculative refactor of open func
d-v-b 0219425
refactor store test fixture
d-v-b bd5eb13
send s3fs fixture to remotestore fixture
d-v-b 1c6044b
remove unused method from group and corresponding test
d-v-b 4c5f06e
explicitly depend on moto server
d-v-b 420ca07
explicitly depend on moto server, also in test deps
d-v-b bac994d
ignore mypy errors properly
d-v-b 426e1cb
fixup
d-v-b 0013d22
annotate store variables as Store
d-v-b fb52a7c
add moto[server] to min_deps
d-v-b 53b9faf
Merge branch 'main' into fix/open-v2-array-remotestore
d-v-b 2ab4dc3
Merge branch 'main' of github.com:zarr-developers/zarr-python into fi…
d-v-b 9ec0d01
revert store fixture name convention
d-v-b 7bc982e
remove unused import
d-v-b d776ead
remove mode arg for remotestore
d-v-b 191c012
fixup
d-v-b da03f87
Merge branch 'main' of github.com:zarr-developers/zarr-python into fi…
d-v-b 9def17d
add mutability altering funcs
d-v-b d1c95b2
get consolidated tests to pass
d-v-b a04e636
fix for open_array in r+ mode
d-v-b e29e072
fix broken zipstore delete_dir
d-v-b cbf1a61
xfail zipstore in open_array test
d-v-b cadfef1
add missing import
d-v-b f085859
Merge branch 'fix/open-v2-array-remotestore' of github.com:d-v-b/zarr…
d-v-b c0f777d
use create instead of open_array in fill_value test
d-v-b 94e2468
remove xfail for zipstore in test_open_with_mode_r_plus
d-v-b 15b0211
xfail test that fails for any warning on python 3.12 or higher with r…
d-v-b 8d3b66c
remove xfail for zip
d-v-b 5e5376f
lint
d-v-b d087e9b
fix open_array for mode r+
d-v-b 0c03d4a
Merge branch 'fix/open-r-plus' of github.com:d-v-b/zarr-python into f…
d-v-b 9f45997
simplify group tests by removing zip and remote store cases
d-v-b c0d5407
simplify test_array
d-v-b f946499
use zarr_format fixture
d-v-b c5b3588
add old open_with_mode_r test
d-v-b c62de51
Merge branch 'main' of github.com:zarr-developers/zarr-python into fi…
d-v-b f95c0fb
Merge branch 'main' of github.com:zarr-developers/zarr-python into fi…
d-v-b 0fa90ba
add _as_immutable and _as_mutable methods to stores; use those method…
d-v-b 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -412,6 +412,18 @@ async def getsize_prefix(self, prefix: str) -> int: | |
sizes = await concurrent_map(keys, self.getsize, limit=limit) | ||
return sum(sizes) | ||
|
||
def _as_immutable(self: Self) -> Self: | ||
""" | ||
Return a mutable copy of the store. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like perhaps the words "mutable" and "immutable" should be swapped between this method and the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops, good catch! |
||
""" | ||
raise NotImplementedError | ||
|
||
def _as_mutable(self: Self) -> Self: | ||
""" | ||
Return an immutable (read-only) copy of the store. | ||
""" | ||
raise NotImplementedError | ||
|
||
|
||
@runtime_checkable | ||
class ByteGetter(Protocol): | ||
|
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
in icechunk we have these as
set_read_only
andset_writeable
which I mildly prefer. Simple words are nice.