We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2440b3a commit c662806Copy full SHA for c662806
1 file changed
malariagen_data/anoph/phenotypes.py
@@ -71,9 +71,12 @@ def _load_phenotype_data(
71
if insecticide is not None:
72
df_combined = df_combined[df_combined["insecticide"].isin(insecticide)]
73
74
- df_combined = df_combined[
75
- df_combined["dose"].isin(dose if isinstance(dose, list) else [dose])
76
- ]
+ if dose is None:
+ df_combined = df_combined[df_combined["dose"].isna()]
+ else:
77
+ df_combined = df_combined[
78
+ df_combined["dose"].isin(dose if isinstance(dose, list) else [dose])
79
+ ]
80
81
if phenotype is not None:
82
df_combined = df_combined[df_combined["phenotype"].isin(phenotype)]
0 commit comments