8000 Add shape checking for ConvexPolyhedron by janbridley · Pull Request #263 · glotzerlab/coxeter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add shape checking for ConvexPolyhedron #263

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

Merged
merged 2 commits into from
May 2, 2025

Conversation

janbridley
Copy link
Collaborator
@janbridley janbridley commented Apr 23, 2025

Description

Shape of input vertex arrays is now checked for ConvexPolyhedron, raising a ValueError (as in numpy) when the array is not (N,3)

Motivation and Context

Scipy convex hull would segfault if passed an array with more than two dimensions, leading to confusing behavior. This fix instead provides a nicely formatted error for users.

Types of Changes

  • Documentation update
  • Bug fix
  • New feature
  • Breaking change1

1The change breaks (or has the potential to break) existing functionality.

Checklist:

@janbridley janbridley marked this pull request as ready for review April 23, 2025 15:50
@janbridley janbridley requested a review from rynoliphant April 23, 2025 15:51
Copy link
@rynoliphant rynoliphant left a comment

Choose a reason for hiding this comment

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

Looks good!

@janbridley janbridley merged commit 2cff65b into main May 2, 2025
9 of 10 checks passed
@janbridley janbridley deleted the feat/shape-check-polyhedron branch May 2, 2025 19:04
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
0