PMEAL / OpenPNM

A Python package for performing pore network modeling of porous media
http://openpnm.org
MIT License
442 stars 175 forks source link

`scipy.sparse.csgraph` needs to be imported directly when using `find_cluster()` #795

Closed ma-sadeghi closed 6 years ago

ma-sadeghi commented 6 years ago

When using find_cluster method, Spyder complains that scipy.sparse has no attribute csgraph, which probably stems from Python's import mechanism that doesn't automatically import modules deeper than one level. Long story short, either I'm using the code the wrong way, or scipy.sparse.csgraph needs to be imported explicitly in GenericNetwork's header.

jgostick commented 6 years ago

This is now fixed, with all the graph stuff being moved to topotools and the reworking of the percolation algs