Skip to content

Use buffer sizes for pyProject span validation - #17

Draft
HellAholic wants to merge 2 commits into
UC-3697_AI_DFfrom
UC-3697_exception_fix
Draft

Use buffer sizes for pyProject span validation#17
HellAholic wants to merge 2 commits into
UC-3697_AI_DFfrom
UC-3697_exception_fix

Conversation

@HellAholic

Copy link
Copy Markdown
Contributor

Replaced strict 2D ndim checks with stride-based element-count validation in pyProject, ensuring each input buffer size is divisible by its struct width (2 or 3). Span lengths are now derived from total element counts (size / stride) instead of shape[0], allowing compatible flattened buffers while keeping matrix and camera-normal size checks intact.

Replaced strict 2D `ndim` checks with stride-based element-count validation in `pyProject`, ensuring each input buffer size is divisible by its struct width (2 or 3). Span lengths are now derived from total element counts (`size / stride`) instead of `shape[0]`, allowing compatible flattened buffers while keeping matrix and camera-normal size checks intact.
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.

1 participant