Uh oh!
There was an error while loading. Please reload this page.
test_numpy_dtypes: Add test for py::vectorize() - #2260
Conversation
| assert m.f_simple( | ||
| m.SimpleStruct.fromtuple(s_recarray_scalar.item())) == 20 | ||
| # Show that an array of dtype=object does *not* convert. |
There was a problem hiding this comment.
Exactly. This is what #2258 is about. I feel ideally m.f_simple_vectorized(np.array([s])) should work directly without any issues. If not, the docs should at least mention either the totuple/fromtuple or the creat_recarray-like workarounds.
There was a problem hiding this comment.
Thanks for the comment! I think a docs change is currently out-of-scope for this PR (as it's a strict improvement).
Might you be up for trying out a doc PR? (if not, I can circle back to it, but it may take me a bit)
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Krishna Chaitanya <bkchaitan94@gmail.com>
bstaletic
commented
Sep 16, 2020
The new test is failing after rebase. |
henryiii
commented
Sep 16, 2020
I think that finally makes GCC 4.8 / CentOS 7 (manylinux1) happy. |
EricCousineau-TRI
commented
Sep 17, 2020
Awesome, sorry for the delay here, but merging now! |
EricCousineau-TRI
commented
Sep 17, 2020
Thank y'all! |
Shows test for #2258
Feel free to close if this doesn't add value.With the latest push of 337dc9c, I think this has value?
\cc @chaitan94