-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Zarr-Python 3 compatibility #11388
Merged
+97
−31
Merged
Zarr-Python 3 compatibility #11388
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2343749
switch to using zarr.open_array instead of using the Array constructor
jhamman e37704b
further changes for zarr3 compat
jhamman 4380993
switch to working branch for upstream test
jhamman 916561c
Update dask/array/core.py
jhamman 104bc6f
update imports
jhamman c3df8d6
Merge branch 'main' of github.com:dask/dask into fix/zarr-array-const…
jhamman e3aab83
fixup test
jhamman 228deb9
fixup distributed test
jhamman c710118
Merge branch 'fix/zarr-array-construction' of github.com:jhamman/dask…
jhamman 1134808
Update continuous_integration/scripts/install.sh
jhamman 3d8f445
Merge branch 'main' into fix/zarr-array-construction-2
jhamman a044730
fixup order / xarray tests
jhamman e99bbdd
Merge branch 'fix/zarr-array-construction-2' of github.com:jhamman/da…
jhamman aeaf871
Merge branch 'main' of github.com:dask/dask into fix/zarr-array-const…
jhamman c0f671e
Merge branch 'main' into fix/zarr-array-construction-2
jhamman 9721f02
cleanup resources in fixture
jhamman b658930
Merge branch 'fix/zarr-array-construction-2' of github.com:jhamman/da…
jhamman eadc5f5
point at working branch
jhamman 0094664
tidy
jhamman c1c7f5a
Merge branch 'main' into fix/zarr-array-construction-2
jhamman 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
from array import array | ||
|
||
import pytest | ||
from packaging.version import Version | ||
|
||
from dask.multiprocessing import get_context | ||
from dask.sizeof import sizeof | ||
|
@@ -276,12 +277,19 @@ def test_xarray(): | |
|
||
def test_xarray_not_in_memory(): | ||
xr = pytest.importorskip("xarray") | ||
zarr = pytest.importorskip("zarr") | ||
np = pytest.importorskip("numpy") | ||
pytest.importorskip("zarr") | ||
|
||
ind = np.arange(-66, 67, 1).astype(float) | ||
arr = np.random.random((len(ind),)) | ||
|
||
# TODO: remove this conditional after consolidated metadata lands in v3 | ||
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. Is this referring to landing in dask or in Zarr? Did it land? There's no issue or PR reference to check. |
||
if Version(zarr.__version__) > Version("3.0.0.a0") and Version( | ||
zarr.__version__ | ||
) < Version("3.0.0"): | ||
pytest.xfail("consolidated metadata and xarray support is not complete") | ||
|
||
with tmpdir() as path: | ||
xr.DataArray( | ||
arr, | ||
|
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.
PS, the second
zarr
import can be removed.