Skip to content

Commit f0b3592

Browse files
authored
Fix center and zoom map parameters to allow int or float values (#625)
* Upgrade center, zoom map params to floats * Explicitly allow either int, float for center, zoom map params
1 parent 55432a5 commit f0b3592

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

malariagen_data/anoph/map_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
from typing_extensions import Annotated, TypeAlias
88

99
center: TypeAlias = Annotated[
10-
Tuple[int, int],
10+
Tuple[Union[int, float], Union[int, float]],
1111
"Location to center the map.",
1212
]
1313

1414
center_default: center = (-2, 20)
1515

16-
zoom: TypeAlias = Annotated[int, "Initial zoom level."]
16+
zoom: TypeAlias = Annotated[Union[int, float], "Initial zoom level."]
1717

1818
zoom_default: zoom = 3
1919

0 commit comments

Comments
 (0)