Skip to content

Handle cubic spline endpoints and invalid knot sequences - #1508

Open
Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix-cubic-spline-boundary-contracts
Open

Afloat16 wants to merge 1 commit into
AtsushiSakai:masterfrom
Afloat16:fix-cubic-spline-boundary-contracts

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 7, 2026

Copy link
Copy Markdown

CubicSpline1D selected a nonexistent interval at the right endpoint, accepted duplicate knots and mismatched sample counts, and raised an indexing error for a single knot. The 2D tangent and curvature accessors also raised errors for out-of-domain queries where their docstrings specify None. The accompanying five regression cases failed against master and pass after the change.

Test: python -m unittest discover -s tests -p test_cubic_spline_boundaries.py

This branch has not been deployed

No deployments
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