Load ELAN filesΒΆ

This example demonstrate how to load an ELAN file.

Required dataset at : https://www.dropbox.com/s/95xvdqivpgk90hg/sleep_elan.zip?dl=1

import os
from visbrain import Sleep
from visbrain.io import download_file

current_path = os.getcwd()
target_path = os.path.join(current_path, 'data', 'elan')

# Download dataset :
download_file("sleep_elan.zip", unzip=True, to_path=target_path)

dfile = os.path.join(target_path, 'sub-02.eeg')
hfile = os.path.join(target_path, 'sub-02.hyp')

Sleep(data=dfile, hypno=hfile).show()

Total running time of the script: ( 0 minutes 0.000 seconds)

Gallery generated by Sphinx-Gallery