.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_paper/00_fetch_data.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_auto_paper_00_fetch_data.py: Part 1: Fetch data ================== Download the OpenNeuro dataset ds003490. .. GENERATED FROM PYTHON SOURCE LINES 7-21 .. code-block:: default import openneuro as on import os cwd = os.getcwd() data_root = os.path.join(cwd, 'transfreq_data') if not os.path.exists(data_root): os.mkdir(data_root) else: raise Exception('Folder {} already exists. Please check'.format( data_root)) on.download(dataset='ds003490', target_dir=data_root) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_paper_00_fetch_data.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: 00_fetch_data.py <00_fetch_data.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: 00_fetch_data.ipynb <00_fetch_data.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_