v0.6.3
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
axkeyword-argument toyasa.plot_hypnogramand removedfigsize. Now select figure aesthetics (e.g., size, dpi) by opening amatplotlib.axes.Axesinstance and passing toax. See PR #108 yasa.plot_hypnogramnow draws the hypnogram withmatplotlib.pyplot.stairsinstead ofmatplotlib.pyplot.step. See issue #106 and PR #108