Conversation
|
Nice, thanks for taking this on! I think we should probably copy over the chararray tests to make new tests for these ufuncs, adapting the tests where there are any behavior differences. |
Yup, I'm writing tests now, that's why I opened it as a draft. I'm writing new tests though that make a bit more sense, since the defchararray ones also try to test the rstrip logic etc, and it might take some more time (I'm also gonna be out next week). |
|
Yeah, just wanted to raise it in case you hadn't thought about it yet. Happy holidays! |
|
I'd say let's try and get this merged. I'll backfill |
|
Also, if someone has any advice on how to get test coverage for C/C++ code, that'd be really helpful, since I can't find how to do it. |
|
We used to use gcov to generate coverage in testing, and upload it to https://about.codecov.io/. Maybe we lost this in the move to meson? In any case, gcov is the tool that produces the database of code coverage in C/C++ |
Thanks! This helped a lot. |
17b5693 to
fbd0f0c
Compare
fbd0f0c to
14add39
Compare
|
Can we also get a barebones docs API page for the namespace? Take a look at #25507 where I created an |
|
The test failure is coming from using Instead of using diff --git a/numpy/_core/src/umath/string_buffer.h b/numpy/_core/src/umath/string_buffer.h
--
index 2004b04f4..635254900 100644
--- a/numpy/_core/src/umath/string_buffer.h
+++ b/numpy/_core/src/umath/string_buffer.h
@@ -158,7 +158,11 @@ struct Buffer {
newbuf.buf = (char *) memchr(buf, ch, len);
break;
case ENCODING::UTF32:
- newbuf.buf = (char *) wmemchr((wchar_t *) buf, ch, len);
+ for (int i=0; i<len; i++) {
+ if (newbuf[i] == ch) {
+ newbuf += i;
+ }
+ }
break;
}
return newbuf; |
|
I'm on arm64 macOS, so I can't build the docs due to matplotlib/matplotlib#27445. Is there a way to circumvent that or do we build the docs in CI somewhere? |
a7ea092 to
e0fe2ce
Compare
Yeah, you should be able to manually download, rename the wheel file, and install the renamed wheel. The wheel is fine, pip just doesn't like the filename.
Circleci does the docs build. Click the "details" link on the |
|
Thanks @ngoldbaum for the info! Everything looks fine from my side, so another review would be great, so that we can merge this. |
|
I forgot to mention this earlier, it needs a release note. I think I'll likely edit it later but something to start with would be nice. |
|
Doctests are failing: You can run the doctests locally with: The latter would catch the error in the tests. Also can we get a release note too? |
bf1e311 to
7f85895
Compare
|
Pulling this in, thanks @lysnikolaou. If we catch issues with the typing later we can fix in a followup. I'd really like to have the extensive tests available in main for my work on implementing these ufuncs in stringdtype. No need to ping the mailing list, I think, this has been proposed as part of NEP 55 for quite a while and no one has objected to the new namespace in any of the NEP 55 review. I'll be expanding on the docs added here in the stringdtype PR. |
|
Thanks for writing the release note @ngoldbaum! |
No description provided.