Skip to content

Commit

Permalink
select named tax_ids by is_classified instead of is_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Mar 5, 2024
1 parent 97bc2ee commit e9876f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions taxtastic/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@ def species_below(self, tax_id):
return newc

def named(self, no_rank=True):
nodes = self.nodes
s = select(nodes.c.tax_id).where(nodes.c.is_valid)
names = self.names
s = select(names.c.tax_id).where(names.c.is_classified)
if not no_rank:
s = s.where(nodes.c.rank != 'no_rank')
s = s.where(names.c.rank != 'no_rank')
return [f[0] for f in self.fetchall(s)]

0 comments on commit e9876f4

Please sign in to comment.