-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type promotion for
indices
arrays and casting vals
in integer ind…
…exing (#1647) * Tweaks to advanced integer indexing Setting items in an array now casts the right-hand side to the array data type when the data types differ Setting and getting from an empty axis with non-empty indices now throws `IndexError` * Integer advanced indexing now promotes indices arrays * `put` now casts `vals` when the data type differs from `x` Fixes `take` and `put` being used on non-empty axes with non-empty indices Also adds a note to `put` about race conditions for non-unique indices * Adds tests for indexing array casting for indices and values * Fixes range when checking for empty axes in _take/_put_multi_index Also corrects error raised in _put_multi_index when attempting to put into indices along an empty axis * Changes per PR review
- Loading branch information
1 parent
f5c6610
commit 7757857
Showing
4 changed files
with
237 additions
and
60 deletions.
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
Oops, something went wrong.