Skip to content
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

BUG: signal: fix peak widths zero division error #20721

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Jerry-Ma
Copy link

Reference issue

Closes #20720

What does this implement/fix?

Added check to only do interpolation if values are different.

Additional information

@github-actions github-actions bot added scipy.signal Cython Issues with the internal Cython code base labels May 16, 2024
@lucascolley lucascolley added the defect A clear bug or issue that prevents SciPy from being installed or used as expected label May 16, 2024
@lucascolley lucascolley changed the title fix peak widths zero division error BUG: signal: fix peak widths zero division error May 16, 2024
Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

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

thanks @Jerry-Ma, could you add a test which fails before this patch and passes afterwards?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cython Issues with the internal Cython code base defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.signal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: ZeroDivision Error in peak_finding_utils.pyx
2 participants