[go: nahoru, domu]

Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor IBA python binding internal refactor: vecresize utility #3757

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

lgritz
Copy link
Collaborator
@lgritz lgritz commented Jan 21, 2023

There's a recurring idiom spread all over the python bindings for ImageBufAlgo, which I encapsulate in a new local helper template vecresize(). This ensures that the logic is identical in all the places it's used, and also improves our coverage analysis (because it was tricky to make tests that exercise the uninitialized-handling cases separately for each of the many different places the idiom was used).

There's a recurring idiom spread all over the python bindings for
ImageBufAlgo, which I encapsulate in a new local helper template
vecresize(). This ensures that the logic is identical in all the
places it's used, and also improves our coverage analysis (because it
was tricky to make tests that exercise the uninitialized-handling
cases separately for each of the many different places the idiom was
used).
@lgritz lgritz merged commit 91a2bc4 into AcademySoftwareFoundation:master Jan 22, 2023
@lgritz lgritz deleted the lg-pythonsimp branch January 23, 2023 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant