Repository navigation
Commit 6aa4923
committed
Fall back on .vindex when basic indexing fails
Addresses zarr-developers#657
This matches NumPy behaviour in that basic, boolean, and vectorized
integer (fancy) indexing are all accessible from `__{get,set}item__`.
Users still have access to all the indexing methods if they want to be
sure to use only basic indexing (integer + slices).1 parent ab5d91b commit 6aa4923
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
662 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
663 | 667 | | |
664 | 668 | | |
665 | 669 | | |
| |||
1209 | 1213 | | |
1210 | 1214 | | |
1211 | 1215 | | |
1212 | | - | |
1213 | | - | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1214 | 1221 | | |
1215 | 1222 | | |
1216 | 1223 | | |
| |||
0 commit comments