Skip to content

Fix spurious PyBindImath testEuler failure - #584

Merged
cary-ilm merged 2 commits into
AcademySoftwareFoundation:mainfrom
cary-ilm:euler-failure
Aug 14, 2026
Merged

Fix spurious PyBindImath testEuler failure#584
cary-ilm merged 2 commits into
AcademySoftwareFoundation:mainfrom
cary-ilm:euler-failure

Conversation

@cary-ilm

Copy link
Copy Markdown
Member

assert e.order() == EULER_XYZ fails (sometimes!?) when e is of type Eulerd because EULER_XYZ is an enum type of Eulerf.

This changes the order() method to return Eulerf values even for Eulerd, so both classes operates with a common enum type.

Same for axis and layout enums.

Assisted-by: GitHub Copilot CLI (model: Claude Sonnet 5)

`assert e.order() == EULER_XYZ` fails (sometimes!?) when `e` is of
type `Eulerd` because `EULER_XYZ` is an enum type of `Eulerf`.

This changes the `order()` method to return `Eulerf` values even for
`Eulerd`, so both classes operates with a common enum type.

Same for axis and layout enums.

Assisted-by: GitHub Copilot CLI (model: Claude Sonnet 5)

Signed-off-by: Cary Phillips <seabeepea@gmail.com>
@cary-ilm

Copy link
Copy Markdown
Member Author

The pybind11 code is not part of the official distribution, and the long-term plan is to deprecated it entirely, so this is essentially dead code. But for now it seemed appropriate to resolve the issues. I'm going to merge this as is.

@cary-ilm
cary-ilm merged commit f926754 into AcademySoftwareFoundation:main Aug 14, 2026
32 checks passed
cary-ilm added a commit that referenced this pull request Aug 17, 2026
`assert e.order() == EULER_XYZ` fails (sometimes!?) when `e` is of
type `Eulerd` because `EULER_XYZ` is an enum type of `Eulerf`.

This changes the `order()` method to return `Eulerf` values even for
`Eulerd`, so both classes operates with a common enum type.

Same for axis and layout enums.

Assisted-by: GitHub Copilot CLI (model: Claude Sonnet 5)

Signed-off-by: Cary Phillips <seabeepea@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant