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

[Fix] eda_plot throws ValueError when the number of onsets is not the same as the number of peaks #916

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

mperreir
Copy link
Contributor

@mperreir mperreir commented Oct 2, 2023

Description

Fix a bug where you had an exception if there was not the same number of peaks and onsets (issue #632). This can happen on signal that has been cut (ex: depending on difference conditions).

Proposed Changes

The fix just ignores the first peak (only for display) when there is no onset for the first peak.

Checklist

Here are some things to check before creating the PR. If you encounter any issues, do let us know :)

  • I have read the CONTRIBUTING file.
  • My PR is targeted at the dev branch (and not towards the master branch).
  • I ran the CODE CHECKS on the files I added or modified and fixed the errors.
  • I have added the newly added features to News.rst (if applicable)

Fix a bug where you had an exception if there was not the same number of peaks and onsets.
This can happen on signal that has been cut (ex: depending on difference conditions).
The fix just ignores the first peak (only for display) when there is no onset for the first peak.
@welcome
Copy link

welcome bot commented Oct 2, 2023

Thanks for opening this pull request! We'll make sure it's perfect before merging 🤗 force
Make sure to read the contributing guide. Also, if you think that your contribution is worthy of it, you can consider adding yourself to the Contributors list (feel free to ask us if you have any doubts).

@DominiqueMakowski
Copy link
Member

Salut @mperreir, thanks a lot for the contribution! Tests are failing because of something else, so I'll merge this :)

@DominiqueMakowski DominiqueMakowski merged commit 379d219 into neuropsychology:dev Oct 2, 2023
5 of 8 checks passed
@welcome
Copy link

welcome bot commented Oct 2, 2023

landing
Congrats on merging your first pull request! 🎉🍾 We're looking forward to your next one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants