Skip to content

v0.6.3

Compare
Choose a tag to compare
@raphaelvallat raphaelvallat released this 14 Dec 01:46
· 24 commits to master since this release

This is a minor release with one bugfix and one new function. Big shoutout to @remrama for his huge help on this new version!

Bugfix

Solved a bug in the spindles detection which resulted in no spindle being detected on some systems. See #107 and #115.

New functions

Added the yasa.simulate_hypno function to generate a simulated hypnogram, primarily for testing purposes and tutorials. The hypnogram is simulated as a Markov sequence based on sleep stage transition probabilities. Transition probabilities can be user-defined or will default to those published in Metzner et al., 2021, Commun Biol (see Figure 5b). See #109 and #110

Improvements

  • Added the ax keyword-argument to yasa.plot_hypnogram and removed figsize. Now select figure aesthetics (e.g., size, dpi) by opening a matplotlib.axes.Axes instance and passing to ax. See PR #108
  • yasa.plot_hypnogram now draws the hypnogram withmatplotlib.pyplot.stairs instead of matplotlib.pyplot.step. See issue #106 and PR #108