Skip to content

Commit

Permalink
fix reroot error in prune_by_strahler
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Jun 16, 2019
1 parent 7255728 commit 4816064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymaid/morpho.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def prune_by_strahler(x, to_prune, reroot_soma=True, inplace=False,
neuron = neuron.copy()

if reroot_soma and neuron.soma:
neuron.reroot(neuron.soma)
neuron.reroot(neuron.soma, inplace=True)

if 'strahler_index' not in neuron.nodes or force_strahler_update:
strahler_index(neuron)
Expand Down

0 comments on commit 4816064

Please sign in to comment.