| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Given the scope of these changes, what is the best way to review these? |
Sorry, something went wrong.
|
I think commit-by-commit is not bad, or maybe I should split out the first commit from the remaining ones, as those are all fairly small. But I also think we maybe should wait for #26050, which I want to get back to reviewing, and I don't want to cause some undue rebasing for the contributor. |
Sorry, something went wrong.
I kinda told him I'd finish that one up for him b/c he had to go do other things, so I'll probably be the one rebasing. I was trying to get in the xkcd PR first (but scratch that, it probably makes more sense to get sketch seed in and then update xkcd) since that would also cause a rebase and touches some of the same code paths. |
Sorry, something went wrong.
|
I should have some time available in a week or two to help review pybind11/C++ changes, if help is required? |
Sorry, something went wrong.
|
@ianthomas23 I was waiting for #26050 to make it easier for the new contributor, but as @story645 says she will take care of it, I've rebased this PR and fixed the conflicts. |
Sorry, something went wrong.
|
@QuLogic Reviewing this is on my todo list, hopefully within the next week. Feel free to ping me if I forget. |
Sorry, something went wrong.
There was a problem hiding this comment.
Just a few comments and style issues.
Sorry, something went wrong.
| static py::tuple | ||
| Py_cleanup_path(mpl::PathIterator path, agg::trans_affine trans, bool remove_nans, | ||
| agg::rect_d clip_rect, e_snap_mode snap_mode, double stroke_width, | ||
| std::optional<bool> simplify, bool return_curves, SketchParams sketch) |
There was a problem hiding this comment.
First use of std::optional in mpl, nice!
Sorry, something went wrong.
| { | ||
| bool result; | ||
|
|
||
| PyArrayObject *array = (PyArrayObject *)PyArray_CheckFromAny( |
There was a problem hiding this comment.
I think it should be possible to use pybind11 for this, similar to image_resample, and then we could remove the import_array lower down. But I'm happy to put this off to a future PR.
Sorry, something went wrong.
There was a problem hiding this comment.
I thought I had tried this, but I can't find a stash for it. There are still a few other numpy::array_view in this file though, so I think removing just this one won't mean removing import_array?
For those other calls, we still need to get Agg closer to pybind11, and then we can do the NumPy API removal, so I think I'll wait on this one.
Sorry, something went wrong.
There was a problem hiding this comment.
Sure.
Sorry, something went wrong.
|
This looks good to me, just needs a second review now. |
Sorry, something went wrong.
|
I've found that pybind11 can do the copy to py::array for you, so I've made that small change to remove the manual memcpy. It did need a cast for Polygon, as the otherwise it tries to make an array containing XY records (which aren't exposed). |
Sorry, something went wrong.
There was a problem hiding this comment.
The tests pass, but we should merge the cgywin PR first.
Sorry, something went wrong.
|
OK, looks like Cygwin is also happy, so I'll merge. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR summary
Another part of #23846, but waiting for some other refactoring PRs to be ready.
PR checklist