NeuralEnsemble / elephant

Elephant is the Electrophysiology Analysis Toolkit
http://www.python-elephant.org
BSD 3-Clause "New" or "Revised" License
200 stars 92 forks source link

[Bug] Deprecation of scipy.sparse.coo_matrix.A in scipy 1.14 #644

Closed jo460464 closed 1 week ago

jo460464 commented 1 week ago

Describe the bug Running spade produces AttributeError

To Reproduce

  1. run elephant.spade.spade with scipy 1.14

AttributeError: 'coo_matrix' object has no attribute 'A'

Expected behavior

Environment

jo460464 commented 1 week ago

Fix of the bug: change coo_matrix.A by coo_matrix.to_array()

Moritz-Alexander-Kern commented 1 week ago

Hey @jo460464 , thanks for reporting this. I think this might have already been addressed here: See: https://github.com/NeuralEnsemble/elephant/pull/636

Try installing the latest development version of elephant with:

pip install git+ssh://git@github.com/NeuralEnsemble/elephant.git@main
jo460464 commented 1 week ago

I am already at the most recent I think, is there a newer version than 1.1.0

jo460464 commented 1 week ago

I mean I see that #636 describes my bug, but in my installation at least it is still present

jo460464 commented 1 week ago

But in the problem seems to be local, thanks Moritz