bycycle-tools / bycycle

Cycle-by-cycle analysis of neural oscillations.
https://bycycle-tools.github.io/
Apache License 2.0
82 stars 21 forks source link

Bursts detection at the beginning of a signal #58

Closed ryanhammonds closed 4 years ago

ryanhammonds commented 4 years ago

Burst detection for the first 1-2 cycles can fail if too close to the beginning of a signal. This is because cycle points are sometimes missing and because amplitude/period consistency get np.nan values for the first cycle.

Here is an example of the issue. The second signal is shifted 0.4 seconds and the first two cycles are missed. Screenshot_20200611_113437

ryanhammonds commented 4 years ago

First/last cycle missing cyclepoints fixed in #59 and edges cycles for bursts throughout the signal fixed in #73.