We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 123ca04 commit b1a5e7bCopy full SHA for b1a5e7b
elephant/conversion.py
@@ -692,7 +692,9 @@ def __getitem__(self, item):
692
the returned binned sparse matrix will affect the original data.
693
"""
694
# taken from csr_matrix.__getitem__
695
- row, col = self.sparse_matrix._validate_indices(item)
+ row_col, idx_shape = self.sparse_matrix._validate_indices(item)
696
+ # _validate_indices returns two tuples since 1.15 , previously it was one tuple with row col
697
+ row, col = row_col
698
spmat = self.sparse_matrix[item]
699
if np.isscalar(spmat):
700
# data with one element
0 commit comments