Unable to run resource file 60_sleep.py successfully

  • MNE version: 1.2.1
  • operating system: Windows 10

I just run the code from
https://mne.tools/dev/auto_tutorials/clinical/60_sleep.html#multiclass-classification-workflow-using-scikit-learn

but my program is stuck at ā€œUsed Annotations descriptions: [ā€˜Sleep stage 1ā€™, ā€˜Sleep stage 2ā€™, ā€˜Sleep stage 3ā€™, ā€˜Sleep stage 4ā€™, ā€˜Sleep stage Rā€™, ā€˜Sleep stage Wā€™]ā€

I waited it for about 20mins, but It seems that it canā€™t keep on finishing " epochs_trainā€¦ā€¦"

I donā€™t know what happened TOT

(I downloaded the python source code '60_sleep.py ā€™ from the wiki

I can successfully get this figure
Figure_2
but I canā€™t keep on ā€˜Create Epochs from the data based on the events found in the annotationsā€™

Hello,

I would advise trying again, possibly in a fresh environment with the latest stable version of MNE.
The creation of the epochs is very fast and there is no reason for the example code to stop here.
The example runs under 20s on my computer.

Mathieu

what happens if you close that figure? Does the script continue running? Some figures are ā€œblockingā€ meaning that the rest of the script wonā€™t run until the figure is closed.