Skip to content

Commit 2c15310

Browse files
authored
Update verify.py
Modified the image_check function to add the "zoom" to the options argument of kwarg_check. This is because in mapillary.interface, the following functions allow for zoom as a keyword argument: 1. get_image_looking_at_controller 2. get_image_close_to_controller The first line of these functions use image_check to filter through only the correct keys. Before the change, if zoom was supplied, image_check would throw an InvalidKwargError exception in both these functions.
1 parent 57ba8a5 commit 2c15310

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mapillary/utils/verify.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def image_check(kwargs) -> bool:
125125
return kwarg_check(
126126
kwargs=kwargs,
127127
options=[
128+
"zoom",
128129
"min_captured_at",
129130
"max_captured_at",
130131
"radius",

0 commit comments

Comments
 (0)