diff --git a/examples/convert_ieeg_to_bids.py b/examples/convert_ieeg_to_bids.py index c5471f9df0..6574bb12d5 100644 --- a/examples/convert_ieeg_to_bids.py +++ b/examples/convert_ieeg_to_bids.py @@ -45,16 +45,15 @@ import os.path as op import shutil -from pprint import pprint from collections import OrderedDict +from pprint import pprint +import mne import numpy as np -import mne from mne_bids import (write_raw_bids, BIDSPath, read_raw_bids, print_dir_tree) - ############################################################################### # Step 1: Download the data # ------------------------- @@ -69,7 +68,6 @@ misc_path = mne.datasets.misc.data_path(force_update=True) - # The electrode coords data are in the tsv file format # which is easily read in using numpy fname = misc_path + '/ecog/sample_ecog_electrodes.tsv' @@ -148,14 +146,14 @@ # frames in MNE-Python if written with :func:`mne_bids.write_raw_bids` are # written with coordinate system ``'Other'``. Note, then we suggest using # :func:`mne_bids.update_sidecar_json` to update the sidecar -# `*_coordinatesystem.json` file to add additional information. +# ``*_coordinatesystem.json`` file to add additional information. ############################################################################### # Step 2: Formatting as BIDS # -------------------------- # # Now, let us format the `Raw` object into BIDS. -############################################################################### +# # With this step, we have everything to start a new BIDS directory using # our data. To do that, we can use :func:`write_raw_bids` # Generally, :func:`write_raw_bids` tries to extract as much