Skip to content

Commit 8fba492

Browse files
committed
use ... instead of multiple slices in tests
on ndarray side (not LArray)
1 parent a83ace1 commit 8fba492

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

larray/tests/test_la.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,15 +583,15 @@ def test_getitem(self):
583583
self._assert_equal_raw(la[age159], raw[[1, 5, 9]])
584584

585585
# ValueGroup at "incorrect" place
586-
self._assert_equal_raw(la[lipro159], raw[:, :, :, [0, 4, 8]])
586+
self._assert_equal_raw(la[lipro159], raw[..., [0, 4, 8]])
587587

588588
# multiple ValueGroup key (in "incorrect" order)
589589
self._assert_equal_raw(la[lipro159, age159],
590-
raw[[1, 5, 9]][:, :, :, [0, 4, 8]])
590+
raw[[1, 5, 9]][..., [0, 4, 8]])
591591

592592
# mixed ValueGroup/positional key
593593
self._assert_equal_raw(la['1,5,9', lipro159],
594-
raw[[1, 5, 9]][:, :, :, [0, 4, 8]])
594+
raw[[1, 5, 9]][..., [0, 4, 8]])
595595

596596
# key with duplicate axes
597597
# la[[1, 5, 9], age['1,5,9']]

0 commit comments

Comments
 (0)