Using make_multi_bowl results in an error as the wrong type of arguments are passed to make_bowl, resulting in the error
BeartypeCallHintParamViolation: Function kwave.utils.mapgen.make_bowl() parameter radius=20 violates type hint typing.Union[int, float], as <protocol "numpy.int64"> 20 not int or float.
This issue is a case of poor documentation and type-checking. I'm updating the label to enhancement since there are running configurations as tested in this file.
Describe the bug
Using
make_multi_bowl
results in an error as the wrong type of arguments are passed tomake_bowl
, resulting in the errorBeartypeCallHintParamViolation: Function kwave.utils.mapgen.make_bowl() parameter radius=20 violates type hint typing.Union[int, float], as <protocol "numpy.int64"> 20 not int or float.
To Reproduce
In collab:
casting to different integer types doesn't help.
not that if
bowl_pos
is a list (as typing suggests) it fails in a different way, i.e. withthen
I am not sure the typing is enforced, as it wants a list of (x,y) coordinates, but here it states
if bowl_pos.shape[-1] != 3: