pik-copan / pyunicorn

Unified Complex Network and Recurrence Analysis Toolbox
http://pik-potsdam.de/~donges/pyunicorn/
Other
195 stars 86 forks source link

dok_matrix no longer allows update #115

Closed jkroenke closed 5 years ago

jkroenke commented 5 years ago

In the file network.py in the _mpi_nsi_arenas_betweenness function the line 3712:

sp_Pi.update(zip(update_keys, update_vals))

raises a NotImplementedError because dok_matrix no longer allows update (See this: https://github.com/scipy/scipy/issues/8338)

ntfrgl commented 5 years ago

I would use fancy indexing assignment, as suggested in the issue. That should be a one-line change.