.apply_func()
fails silently if args and kwargs are not specified correctly
#34
Labels
bug
Something isn't working
See #33. When using
.apply_func()
and the kwargs passed to the function are not correct then the method returnsNone
. This causes issues for downstream processing when the assigned variable is expected to be something different.The optimal result will be if the args and kwargs passed the the function are not correct then the method will provide an error. This will require some checking for the arguments when creating the partial function at https://github.com/Servir-Mekong/hydra-floods/blob/master/hydrafloods/datasets.py#L235. In fact, looks like the args are not even passed so that needs to be fixed...
The text was updated successfully, but these errors were encountered: