Skip to content

Commit

Permalink
Restore accidentally removed hide root if only listing one rank.
Browse files Browse the repository at this point in the history
  • Loading branch information
synrg committed Aug 22, 2024
1 parent d5879a7 commit 50dea8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dronefly/core/formatters/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def taxa_per_rank(
)
else:
root_taxon = taxon_list[0]
for taxon in tree.flatten():
hide_root = include_ranks and len(include_ranks) == 1
for taxon in tree.flatten(hide_root=hide_root):
included = True
# TODO: determine if the taxon is a leaf some other way if the object
# doesn't have both both a direct & descendant count
Expand Down

0 comments on commit 50dea8f

Please sign in to comment.