.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples_gallery/mkh5mne/no_events.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_gallery_mkh5mne_no_events.py: EEG without events or epochs ############################ .. GENERATED FROM PYTHON SOURCE LINES 5-11 .. code-block:: default import mne from mkpy.io import mkh5mne print(mne.__version__) mne.viz.set_browser_backend("matplotlib") # for docs generation .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 1.0.3 Using matplotlib as 2D backend. .. GENERATED FROM PYTHON SOURCE LINES 12-14 This example is a resting EEG recording with no mkpy codemapped events or epochs tables. .. GENERATED FROM PYTHON SOURCE LINES 15-21 .. code-block:: default eeg_h5_f = "../mkh5_data/sub000eeg.h5" mne_raw = mkh5mne.from_mkh5( eeg_h5_f, dblock_paths=["open/dblock_0", "closed/dblock_0"], ) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none ok checking info, montage closed/dblock_0 Creating RawArray with float64 data, n_channels=39, n_times=45568 Range : 0 ... 45567 = 0.000 ... 182.268 secs Ready. /usr/share/miniconda/envs/env_3.8/lib/python3.8/site-packages/mkpy/io/mkh5mne.py:1478: RuntimeWarning: Not setting positions of 5 eog channels found in montage: ['lle', 'lhz', 'HEOG', 'rle', 'rhz'] Consider setting the channel types to be of EEG/sEEG/ECoG/DBS/fNIRS using inst.set_channel_types before calling inst.set_montage, or omit these channels when creating your montage. raw_dblock.set_montage(montage) Creating RawArray with float64 data, n_channels=39, n_times=45568 Range : 0 ... 45567 = 0.000 ... 182.268 secs Ready. /usr/share/miniconda/envs/env_3.8/lib/python3.8/site-packages/mkpy/io/mkh5mne.py:1478: RuntimeWarning: Not setting positions of 5 eog channels found in montage: ['lle', 'lhz', 'HEOG', 'rle', 'rhz'] Consider setting the channel types to be of EEG/sEEG/ECoG/DBS/fNIRS using inst.set_channel_types before calling inst.set_montage, or omit these channels when creating your montage. raw_dblock.set_montage(montage) EEG data marked as already having the desired reference. .. GENERATED FROM PYTHON SOURCE LINES 22-27 .. code-block:: default mne_raw.plot( scalings={"eeg": 5e-5, "eog": 1e-4}, start=282.0, n_channels=39, ) .. image-sg:: /examples_gallery/mkh5mne/images/sphx_glr_no_events_001.png :alt: no events :srcset: /examples_gallery/mkh5mne/images/sphx_glr_no_events_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Opening raw-browser... .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 2.563 seconds) .. _sphx_glr_download_examples_gallery_mkh5mne_no_events.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: no_events.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: no_events.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_