question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve/clarify `Evoked.get_peak()`

See original GitHub issue

As discussed with @drammock here, we should discuss if the current implementation of Evoked.get_peak() is sufficient or if we should improve it with a true peak detection. Currently, it only finds the min/max within an array. If we decide that the current behavior is good enough, we should at least put a note in the docstring.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
agramfortcommented, Aug 24, 2021

I guess that could be a simpler solution (check whether the “peak” is the first or last sample of the time window, and warn if so).

let’s do a first PR with this warning. Then scipy can be done in a next PR

1reaction
cbrnrcommented, Aug 21, 2021

👍 for scipy.signal.find_peaks, and we should probably keep the old method around by introducting a method parameter. WDYT?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found