Skip to content

Commit

Permalink
nx2neuron: fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Oct 8, 2024
1 parent 173e89f commit 380fc27
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions navis/graph/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,16 @@ def nx2neuron(
>>> G = nx.balanced_tree(2, 3)
>>> tn = navis.nx2neuron(G)
>>> tn
type navis.TreeNeuron
name None
n_nodes 15
n_connectors None
n_branches 6
n_leafs 8
cable_length 0.0
soma None
units 1 dimensionless
dtype: object
"""
# First some sanity checks
Expand Down

0 comments on commit 380fc27

Please sign in to comment.