Skip to content

v0.6.1

Compare
Choose a tag to compare
@raphaelvallat raphaelvallat released this 15 Mar 17:21
· 39 commits to master since this release

This release fixes a CRITICAL BUG with the spindles detection. Specifically, the yasa.spindles_detect() could return different results depending on the sampling rate of the data. For example, downsampling the data from 256 Hz to 128 Hz may have significantly reduced the number of detected spindles. As explained in issue 54, this bug was caused by a floating-point error in numpy.convolve() when calculating the soft spindle threshold. Tests seem to indicate that only certain sampling frequencies were impacted, such as 200 Hz, 256 Hz or 400 Hz. Other sampling frequencies such as 100 Hz and 500 Hz were seemingly not affected by this bug.

We recommend all users to upgrade to this new version ASAP and check any results obtained with the yasa.spindles_detect() function!