hydra-floods icon indicating copy to clipboard operation
hydra-floods copied to clipboard

`.apply_func()` fails silently if args and kwargs are not specified correctly

Open KMarkert opened this issue 2 years ago • 1 comments

See #33. When using .apply_func() and the kwargs passed to the function are not correct then the method returns None. 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...

KMarkert avatar Jan 14 '22 18:01 KMarkert

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment to keep open or this will be closed in 5 days.

github-actions[bot] avatar Feb 25 '22 02:02 github-actions[bot]