-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
indexing with a list of slices #10573
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
Open
keewis
wants to merge
16
commits into
pydata:main
Choose a base branch
from
keewis:multi-slice
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
16 commits
Select commit
Hold shift + click to select a range
de3230c
add a container for multiple slices
keewis 42d3a4f
allow passing `MultipleSlices` to `OuterIndexer`
keewis 6cb0dc6
pass filenames to `typos` again
keewis 0cd74d2
allow passing `MultipleSlices` to `Variable.isel`
keewis 328152b
implement support for MultipleSlices in the indexing wrappers
keewis 8d3fc44
check that `NumpyIndexingWrapper` and `LazilyIndexedArray` work
keewis 18e4528
Merge branch 'main' into multi-slice
keewis df2629f
typing
keewis aaa409e
implement indexing an array with multi-slice
keewis 1ceeec1
also assign `slices_` in other cases
keewis 8a2d8b1
move the typing out of the type checking block
keewis d2eab3f
use `__new__` to avoid having to support `tuple[list[slice]]`
keewis 5782260
raise if there's one or more full slices with other slices
keewis 937e008
remove empty slices when merging
keewis 3ec27bd
check that dask behaves correctly
keewis c48cf51
also support slicing pandas indexes
keewis 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,5 +76,3 @@ repos: | |
rev: v1 | ||
hooks: | ||
- id: typos | ||
# https://github.com/crate-ci/typos/issues/347 | ||
pass_filenames: false |
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
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.
if the integer is out-of-bounds, the raised error will complain about unpacking, it should raise an
IndexError
instead