File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -656,11 +656,13 @@ def X_64bit(request):
656
656
X = sp .rand (20 , 10 , format = request .param )
657
657
658
658
if request .param == "coo" :
659
- if hasattr (X , "indices " ):
660
- # for scipy >= 1.13 .indices is a new attribute and is a tuple. The
659
+ if hasattr (X , "coords " ):
660
+ # for scipy >= 1.13 .coords is a new attribute and is a tuple. The
661
661
# .col and .row attributes do not seem to be able to change the
662
662
# dtype, for more details see https://github.com/scipy/scipy/pull/18530/
663
- X .indices = tuple (v .astype ("int64" ) for v in X .indices )
663
+ # and https://github.com/scipy/scipy/pull/20003 where .indices was
664
+ # renamed to .coords
665
+ X .coords = tuple (v .astype ("int64" ) for v in X .coords )
664
666
else :
665
667
# scipy < 1.13
666
668
X .row = X .row .astype ("int64" )
You can’t perform that action at this time.
0 commit comments