Skip to content

Commit

Permalink
add handling for if num disease is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
yaseminbridges committed Jan 5, 2024
1 parent c9b2cca commit 96e2097
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/phenotype2phenopacket/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,5 @@ def filter_diseases(
return random.choices(
group_phenotype_annotation(phenotype_annotation_data.df), k=num_disease
)
if num_disease == 0 and omim_id is None and omim_id_list is None:
return group_phenotype_annotation(phenotype_annotation_data.df)

0 comments on commit 96e2097

Please sign in to comment.