Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
AlainKadar authored Jun 19, 2024
1 parent 8f7102b commit 908d47a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ The following minimal example shows how the package can be used to calculate the

.. code:: python
from StructuralGT.structural import Structural
from StructuralGT.structural import Degree
from StructuralGT.networks import Network
Nanofibre3DNetwork = Network('Nanofibre_Image_Stack')
Nanofibre3DNetwork.binarize()
Nanofibre3DNetwork.img_to_skel(crop=[0,500,0,500,0,500])
Nanofibre3DNetwork.set_graph(weight_type=['Length'])
S = Structural()
S = Degree()
S.compute(Nanofibre3DNetwork)
print(S.diameter)
print(S.average_degree)

0 comments on commit 908d47a

Please sign in to comment.