FIX pickling ufuncs defined in nested modules#4800
Conversation
|
@ogrisel I think there is a test to build custom ufunc somewhere that you may want to re-use ? I don't have easy access to the code ATM. |
|
@cournape you mean write a test with a custom |
|
you can test numpy.core.test_rational.test_add which is a testing ufunc not in the top namespace |
|
also please use |
|
@juliantaylor I added the test you suggested and rewrite the commit message. |
|
mh more assert usage, but it was already there before ... |
FIX pickling ufuncs defined in nested modules
|
Thanks for the review. |
This is a fix for the following problem with ufuncs that are not defined in a top level module:
Unfortunately I don't know how to write a test in numpy as all its ufuncs are importable from the namespace of the top level
numpypackage as far as I know.