Skip to content

Commit

Permalink
use filter_dicts_on_key
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmejia committed Sep 29, 2023
1 parent bb96ad9 commit b54ed9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def discover_division_species(
if strain_mapping:
organism_strain_name = f"{organism_name}_{strain_mapping['strain'].lower()}"
assembly_matches = list(
filter(lambda s: s["assembly_name"] == strain_mapping["assembly"], all_species)
utils.filter_dicts_on_key("assembly_name", strain_mapping["assembly"], all_species)
)

if len(assembly_matches) != 1:
Expand Down

0 comments on commit b54ed9e

Please sign in to comment.