Closed talegari closed 2 years ago
@talegari On debugging, I realized that the real cause of the error is _is_kwargable
check(in turn a call to inspect.getfullargspec) in mutate. All the numpy functions and python builtin written directly in C throw the same exception with inspect.getfullargspec
. https://stackoverflow.com/questions/27769462/using-inspect-getargfullspec-to-find-out-about-functions-not-working
np.maximum works on the two arrays of equal sizes, actual names of two arrays in function signature is not source of the error.
With version
v0.2.1
:Now,
is not a valid call as the function
np.maximum
does not take argumentsx
andy
. But this should provide a clearer error message.Solution (draft): Check for the args when number of args >= 2 and see if they are named appropriately. If not, throw a meaningful error right away. @grahitr what do you think?