Skip to content

Conversation

zitongzhoueric
Copy link
Contributor

Empty cj array should be invalid argument to spline evaluation. Without the guard the mirror symmetry implementation would lead to infinite recursion.

image

@github-actions github-actions bot added scipy.signal enhancement A new feature or improvement labels May 15, 2025
Copy link
Member

@ev-br ev-br left a comment

Choose a reason for hiding this comment

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

Confirmed it fails with the recursion error on scipy 1.5.2, too, so the problem is not a recent regression. Thus no backwards compat considerations, and a descriptive error is nice.

Let's land this.
Thanks @zitongzhoueric , keep them coming!

@ev-br ev-br merged commit b1a523b into scipy:main May 16, 2025
39 of 41 checks passed
@ev-br ev-br added this to the 1.16.0 milestone May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement scipy.signal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants