Skip to content

Commit

Permalink
drop_fluff: fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Sep 28, 2024
1 parent 02d7cc5 commit 9ef2a95
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions navis/morpho/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2293,19 +2293,19 @@ def drop_fluff(
>>> top = navis.drop_fluff(m)
>>> top.n_vertices
5951
>>> # Keep the two largest connected components
>>> two = navis.drop_fluff(m, n_largest=2)
>>> # Keep the ten largest connected components
>>> two = navis.drop_fluff(m, n_largest=10)
>>> two.n_vertices
6037
6069
>>> # Keep all fragments with at least 100 vertices
>>> clean = navis.drop_fluff(m, keep_size=100)
>>> clean.n_vertices
6037
>>> # Keep the two largest fragments with at least 100 vertices
5951
>>> # Keep the two largest fragments with at least 50 vertices each
>>> # (for this neuron the result is just the largest fragment)
>>> clean2 = navis.drop_fluff(m, keep_size=100, n_largest=2)
>>> clean2 = navis.drop_fluff(m, keep_size=50, n_largest=2)
>>> clean2.n_vertices
5951
6037
"""
utils.eval_param(x, name="x", allowed_types=(core.TreeNeuron, core.MeshNeuron, core.Dotprops))
Expand Down

0 comments on commit 9ef2a95

Please sign in to comment.