consensus_hash = HASH(consensus_taxonomy)
for scg_taxonomy_hit in scg_taxonomy_dict.values():
if consensus_hash == scg_taxonomy_hit["tax_hash"]:
scg_taxonomy_hit["supporting_consensus"] = True
supporting_scgs += 1
else:
After Change
total_scgs = len(scg_taxonomy_dict)
supporting_scgs = 0
consensus_taxonomy_levels_occupied = [level for level in self.levels_of_taxonomy if consensus_taxonomy[level]]
consensus_taxonomy_str = " / ".join([consensus_taxonomy[level] for level in consensus_taxonomy_levels_occupied])
for scg_taxonomy_hit in scg_taxonomy_dict.values():
scg_taxonomy_hit_str = " / ".join([str(scg_taxonomy_hit[level]) for level in consensus_taxonomy_levels_occupied])
if scg_taxonomy_hit_str == consensus_taxonomy_str:
scg_taxonomy_hit["supporting_consensus"] = True
supporting_scgs += 1