-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Avoid calling np.asarray on lazy indexing classes #6874
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
Merged
Merged
Changes from 19 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
45cd500
Add get_array to lazy indexing array types.
dcherian 9c0350c
Rename to short_array_repr; use Variable.data
dcherian 74afa53
Fix Variable.load
dcherian 9de7427
Make get_array recursive.
dcherian cc0a653
Some cleanups
dcherian 59c7ead
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2aa0830
Add get_array to PandasIndexingAdaptor
dcherian 1306758
Finish short_array_repr refactoring
dcherian cf67972
Rename to get_duck_array
dcherian 0209900
Try without hasattr check
dcherian 536648a
Return bare array from LazilyIndexedArray.get_duck_array
dcherian f2514c7
Add get_duck_array to AbstractArray
dcherian 3c597d4
Fix zerodim test
dcherian 201eeba
Fix LazilyVectorizedIndexedArray
dcherian cd02a8a
Inherit __array__ from ExplicitlyIndexed
dcherian 7ef55e0
Fix InaccessibleArray in tests
dcherian 4e77fec
Fix BackendArray
dcherian d14c61f
Merge branch 'main' into kvikio
dcherian 19af950
Merge branch 'main' into kvikio
dcherian 22db817
reprs Use .data on AbstractArray
dcherian 2bbcc16
Force netCDF and h5netCDF to return arrays
dcherian ca2a10a
Add whats-new
dcherian 9256dd0
Merge branch 'main' into kvikio
dcherian 906c3b3
Add comments; review feedback
dcherian 598c201
Merge branch 'main' into kvikio
dcherian 941c643
Fix merge.
dcherian d1127fe
Remove another np.asarray
dcherian c0c78a1
Avoid np.asarray on __getitem__.
dcherian 9b727e6
[WIP] ExplicitlyIndexedBackendArray
dcherian 46d98ec
Handle Indexing Adapter classes explicitly.
dcherian b19a24b
Revert "Handle Indexing Adapter classes explicitly."
dcherian 84f560f
Revert "[WIP] ExplicitlyIndexedBackendArray"
dcherian 426519f
Merge branch 'main' into kvikio
dcherian c4b81bf
Fix pydap now that NumpyIndexingAdapter does not automatically cast t…
dcherian d11a3cf
Update xarray/backends/pydap_.py
dcherian c223617
Add test store.
dcherian 51552d4
Merge branch 'main' into kvikio
dcherian 5f1cf53
[skip-ci] Update whats-new
dcherian 937d572
Fix test
dcherian cc7d0b5
fix mypy?
dcherian 1576261
Fix Zarr test
dcherian 7d8459e
test the repr too
dcherian 9815b75
Guard np.asarray for scalars.
dcherian 39e7529
Revert casting to arrays in backend
dcherian f304bcb
Wrap numpy scalars in Explicitly*Indexed*.get_duck_aray
dcherian 6cb1677
Merge branch 'main' into kvikio
dcherian 2c7da96
Merge branch 'main' into kvikio
dcherian 26d224c
Apply suggestions from code review
dcherian 65da209
Update xarray/tests/__init__.py
dcherian 0bc1175
Update xarray/core/indexing.py
dcherian 8c2d74c
Apply suggestions from code review
dcherian 20c8c81
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 77f7059
Bring back the ugly check
dcherian 517f195
Merge branch 'main' into kvikio
dcherian 5c23bd2
Update whats-new
dcherian 887e1c5
Fix pre-commit
dcherian 2557d02
silence mypy error
dcherian b313258
minimize diff
dcherian cbd030e
Merge branch 'main' into kvikio
dcherian 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.