Skip to content

[Bug] Spike-width computation #516

Description

@E4-IMN

Describe the bug
A colleague and I realized that the waveform_width function doesn't work well for recordings where the action potential is a upward deflection and then a downward one because the code looks for the trough first, then to the next peak.

image

Therefore, we would suggest having an extension of the function which is flexible to the 2 possible scenarios (trough to peak or peak to trough).

@rsankar9 feel free to expand on this explanation!

Environment

  • OS (e.g., Linux): Windows and Mac
  • How you installed elephant (conda, pip, source): pip
  • Python version: 3.9
  • neo python package version: 0.10.0
  • elephant python package version: 0.10.0

Metadata

Metadata

Labels

bugIndicates an unexpected problem or unintended behaviornew functionalityNew modules, functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions