Skip to content

Commit

Permalink
reroot: make sure graph not frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Feb 9, 2019
1 parent 349747b commit 5e54467
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymaid/graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,8 @@ def reroot_neuron(x, new_root, inplace=False):
x.graph = nx.DiGraph(x.graph)
elif hasattr(x.graph, '_NODE_OK'):
x.graph = nx.DiGraph(x.graph)
elif nx.is_frozen(x.graph):
x.graph = nx.DiGraph(x.graph)

g = x.graph

Expand Down

0 comments on commit 5e54467

Please sign in to comment.