netneurolab / netneurotools

Useful tools from the Network Neuroscience Lab
https://netneurolab.github.io/netneurotools
BSD 3-Clause "New" or "Revised" License
57 stars 33 forks source link

[MNT] Import private namespaces if scipy > 1.8.0 #111

Closed VinceBaz closed 2 years ago

VinceBaz commented 2 years ago

This pull request fixes the import statements for functions in private namespaces in scipy. Private namespaces where renamed in scipy 1.8.0 to distinguish them from public ones (see this issue). I fixed the import statements appropriately and used a try/except statement so that the toolbox still works with scipy < 1.8.0