Skip to content

Commit 21c31f3

Browse files
add TODO
1 parent dae1a81 commit 21c31f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

elephant/conversion.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,10 @@ def __getitem__(self, item):
693693
"""
694694
# taken from csr_matrix.__getitem__
695695
valid_indices = self.sparse_matrix._validate_indices(item)
696+
# TODO: The following is a hot fix to compensate an API change in SciPy 1.15 (#653)
697+
# Currently, we cannot set scipy>=1.15 since this would not allow for Python 3.9.
698+
# Once we phase out support for Python 3.9, remove the if statement and the else
699+
# branch and require scipy>=1.15.
696700
if isinstance(valid_indices[0], tuple):
697701
# New version of SciPy (1.15 and later)
698702
row, col = valid_indices[0]

0 commit comments

Comments
 (0)