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

Pybind11 and python unit tests #354

Merged
merged 6 commits into from
Oct 16, 2023

Conversation

lamiller0
Copy link
Contributor

Fill in Vec2, Vec3, and Vec4 stuff a little bit.

Create an area for python unit tests and fill in a basic example

…ended

to be written such that they  work for both boost and pybind11.

Signed-off-by: Lucas Miller <lmiller@imageworks.com>
…s from

accidentally linking to boost.

Build out more of PyImathVec to get it to pass the simple test.

Signed-off-by: Lucas Miller <lmiller@imageworks.com>
@lamiller0 lamiller0 marked this pull request as draft October 13, 2023 01:07
@lamiller0

This comment was marked as resolved.

Signed-off-by: Lucas Miller <lmiller@imageworks.com>
Signed-off-by: Lucas Miller <lmiller@imageworks.com>
https://github.com/cinereal/Imath/tree/pybind11_unit_test

Unit test contributions from Chris Gloor for ASWF Dev Days.

Signed-off-by: Lucas Miller <lmiller@imageworks.com>
carefully compare the results with the boost python bindings.

Add a couple more operators to the box that we will definitely need for future
tests.

Add a bunch of operators to PyImathVec to get almost all of the tests passing.

Need to check on the argument order for closestVertex and project as the
boost python bindings move them around without a clear doc string indicating
it.

Signed-off-by: Lucas Miller <lmiller@imageworks.com>
@cary-ilm cary-ilm marked this pull request as ready for review October 16, 2023 15:21
Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

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

LGTM so far, thanks!

@cary-ilm cary-ilm merged commit 490be7e into AcademySoftwareFoundation:main Oct 16, 2023
23 checks passed
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.

2 participants