Skip to content

Commit

Permalink
forgot to uncomment this
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Jun 5, 2024
1 parent 9f8baba commit 1dd0dec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions taxtastic/taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,14 @@ def _get_lineage_table(self, tax_ids, merge_obsolete=True):
raise ValueError('no tax_ids were found')
else:
returned = {row[0] for row in rows}
# # TODO: compare set membership, not lengths
# if len(returned) < len(tax_ids):
# msg = ('{} tax_ids were provided '
# 'but only {} were returned').format(
# len(tax_ids), len(returned))
# log.error('Input tax_ids not represented in output:')
# log.error(sorted(set(tax_ids) - returned))
# raise ValueError(msg)
# TODO: compare set membership, not lengths
if len(returned) < len(tax_ids):
msg = ('{} tax_ids were provided '
'but only {} were returned').format(
len(tax_ids), len(returned))
log.error('Input tax_ids not represented in output:')
log.error(sorted(set(tax_ids) - returned))
raise ValueError(msg)

return rows

Expand Down

0 comments on commit 1dd0dec

Please sign in to comment.