Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Convert remaining code to pybind11#28856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
greglucas merged 8 commits intomatplotlib:mainfromQuLogic:pybind11-finals
Oct 8, 2024

Conversation

QuLogic
Copy link
Member

PR summary

Now that we are building with pybind11 in all extensions, we can drop/convert several items that were used across extensions. Namely, everything inpy_adaptors (which was shared between_path and_backend_agg) can now get a type caster, all the remainingarray_view can be moved topy::array_t, and theClipPath converter issue from#27011 has been fixed.

Additionally, I moved the pybind11 type casters frompy_converters_11.h to the files that define the related types. This keeps things a bit more consolidated, and avoids the weird#ifdef macro magic that was needed before.

PR checklist

@QuLogicQuLogic added this to thev3.10.0 milestoneSep 21, 2024
@QuLogicQuLogic mentioned this pull requestSep 21, 2024
4 tasks
@QuLogicQuLogic added the CI: Run cibuildwheelRun wheel building tests on a PR labelSep 21, 2024
@github-actionsgithub-actionsbot removed the CI: Run cibuildwheelRun wheel building tests on a PR labelSep 24, 2024
@QuLogicQuLogic mentioned this pull requestSep 24, 2024
13 tasks
Copy link
Member

@ksundenksunden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I would like to get this in for 3.10, so if we could get a second review, that would be great

@QuLogicQuLogic mentioned this pull requestOct 1, 2024
4 tasks
QuLogicand others added8 commitsOctober 1, 2024 22:24
This was previously checked by using an `array_view<type, ndim>`, butmoving to pybind11 we won't have that until cast to `unchecked`.
They need only be the same number of dimensions, as sometimes code does`np.atleast_3d(array)` on something empty, which inserts the 0-dimensionin a spot that messes with the expected trailing shape.
Now that everything else is using pybind11, this works without issue.
Since we're using pybind11 everywhere, it should be fine now to accessit in any header, and putting the type caster there is clearer. We don'tneed the weird macro checks to conditionally define them either.
Co-authored-by: Antony Lee <anntzer.lee@gmail.com>
@tacaswell
Copy link
Member

This looks like some of the grayscale have picked up a off-by-one rounding issue. Seeing this on other PRs as well.

Copy link
Contributor

@greglucasgreglucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I am not an expert on the pybind11 changes, but I did peruse this and it all looks reasonable to a non-expert. I reran the failing 313t tests and those now pass. I believe the other failures in Azure are unrelated and failing on other tests too.

I believe that it will be easier to review incremental updates after this is in if there is anything else to follow up on.

Great work on this@QuLogic! This was no small feat.

@greglucasgreglucas merged commitf8cadb3 intomatplotlib:mainOct 8, 2024
40 of 44 checks passed
@QuLogicQuLogic deleted the pybind11-finals branchOctober 8, 2024 22:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer left review comments

@ksundenksundenksunden approved these changes

@greglucasgreglucasgreglucas approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.10.0
Development

Successfully merging this pull request may close these issues.

5 participants
@QuLogic@tacaswell@anntzer@ksunden@greglucas

[8]ページ先頭

©2009-2025 Movatter.jp