Image-Py / imagepy

Image process framework based on plugin like imagej, it is esay to glue with scipy.ndimage, scikit-image, opencv, simpleitk, mayavi...and any libraries based on numpy
http://imagepy.org
BSD 4-Clause "Original" or "Old" License
1.29k stars 330 forks source link

Bugs in the Network tool #82

Open CsatiZoltan opened 4 years ago

CsatiZoltan commented 4 years ago

For the network tool to work with Python 3.7.6, we need some changes:

CsatiZoltan commented 4 years ago

Remark: the reason why the "Build Graph" tool works in the standalone Windows version is because it uses networkx 2.2. In fact, the previously mentioned issue with the node attribute was deprecated since version 2.2, and was removed in version 2.4.

yxdragon commented 4 years ago

I just replace all the "node[" by "nodes[", And now every thing is ok for me. I had pushed. have a try?

CsatiZoltan commented 4 years ago

Yes, that solves the problem, as expected. You need to make the changes in /menus/Analysis/Skeleton Network/graph_plgs.py and in /ipyalg/graph/sknw.py.

The other modification I proposed concerning linspace also works.

CsatiZoltan commented 4 years ago

Also note that the issue with .node also concerns your sknw repository.

CsatiZoltan commented 4 years ago

Another error found in graph_plgs.py: connected_component_subgraphs is removed. For a solution, see the related issue https://github.com/rkistner/chinese-postman/issues/21.