Skip to content

Commit ad20786

Browse files
committed
Merge branch 'master' into GH391_add_params_to_allele_frequencies_advanced
2 parents 4357f9f + 2dba673 commit ad20786

File tree

6 files changed

+2112
-2
lines changed

6 files changed

+2112
-2
lines changed

malariagen_data/ag3.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
import dask
44
import pandas as pd # type: ignore
55
import plotly.express as px # type: ignore
6-
76
import malariagen_data
87
from .anopheles import AnophelesDataResource
98

10-
119
# silence dask performance warnings
1210
dask.config.set(**{"array.slicing.split_native_chunks": False}) # type: ignore
1311

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from typing import TypeAlias, Optional, Union, List, Annotated
2+
3+
# Type alias for insecticide parameter
4+
insecticide: TypeAlias = Annotated[
5+
Optional[Union[str, List[str]]],
6+
"Insecticide name(s) to filter by. Can be a single insecticide name or a list of names.",
7+
]
8+
9+
# Type alias for dose parameter
10+
dose: TypeAlias = Annotated[
11+
Optional[Union[float, List[float]]],
12+
"Insecticide dose(s) to filter by. Can be a single dose value or a list of dose values.",
13+
]
14+
15+
# Type alias for phenotype parameter
16+
phenotype: TypeAlias = Annotated[
17+
Optional[Union[str, List[str]]],
18+
"Phenotype outcome(s) to filter by. Can be a single phenotype value (e.g., 'alive', 'dead') or a list of values.",
19+
]

0 commit comments

Comments
 (0)