Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
eliminate FutureWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
miklos1 committed Jul 25, 2018
1 parent a890291 commit 73db834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gem/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def filter(self, idx, fids):
return tuple(idx[fids.index(i)] for i in self.fids) + idx[len(fids):]

def __getitem__(self, idx):
return self.arr[idx]
return self.arr[tuple(idx)]

def __setitem__(self, idx, val):
self.arr[idx] = val
Expand Down
2 changes: 1 addition & 1 deletion tsfc/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def einsum(factors, sum_indices):
else:
selectors.append(slice(None))
letters.append(index2letter[index])
operands.append(literal.array.__getitem__(selectors))
operands.append(literal.array.__getitem__(tuple(selectors)))
subscript_parts.append(''.join(letters))

result_pairs = sorted((letter, index)
Expand Down

0 comments on commit 73db834

Please sign in to comment.