.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/igorio.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_igorio.py: IgorProIO Demo =========================== .. GENERATED FROM PYTHON SOURCE LINES 6-32 .. code-block:: Python import os from urllib.request import urlretrieve import zipfile import matplotlib.pyplot as plt from neo.io import get_io # Downloaded from Human Brain Project Collaboratory # Digital Reconstruction of Neocortical Microcircuitry (nmc-portal) # http://microcircuits.epfl.ch/#/animal/8ecde7d1-b2d2-11e4-b949-6003088da632 datafile_url = "https://microcircuits.epfl.ch/data/released_data/B95.zip" filename_zip = "B95.zip" filename = 'grouped_ephys/B95/B95_Ch0_IDRest_107.ibw' urlretrieve(datafile_url, filename_zip) zip_ref = zipfile.ZipFile(filename_zip) # create zipfile object zip_ref.extract(path='.', member=filename) # extract file to dir zip_ref.close() reader = get_io(filename) signal = reader.read_analogsignal() plt.plot(signal.times, signal) plt.xlabel(signal.sampling_period.dimensionality) plt.ylabel(signal.dimensionality) .. _sphx_glr_download_examples_igorio.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: igorio.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: igorio.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_