Skip to content

Commit

Permalink
fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ipdemes committed Nov 14, 2023
1 parent fa32b7a commit d9b044b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cunumeric/deferred.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,10 @@ def _create_indexing_array(
computed_key: tuple[Any, ...]
if isinstance(key, NumPyThunk):
computed_key = (key,)
assert isinstance(key, tuple)
computed_key = self._unpack_ellipsis(key, self.ndim)
else:
computed_key = key
assert isinstance(computed_key, tuple)
computed_key = self._unpack_ellipsis(computed_key, self.ndim)

# the index where the first index_array is passed to the [] operator
start_index = -1
Expand Down Expand Up @@ -824,7 +826,9 @@ def _create_indexing_array(
)
key_transpose_indices += post_indices
store = store.transpose(transpose_indices)
key = tuple(computed_key[i] for i in key_transpose_indices)
computed_key = tuple(
computed_key[i] for i in key_transpose_indices
)

shift = 0
for dim, k in enumerate(computed_key):
Expand Down

0 comments on commit d9b044b

Please sign in to comment.