.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_synthetic_calcium.py: Create synthetic calcium traces ============================== This is an example of how to create synthetic calcium traces .. code-block:: python from neuroglia.datasets import make_calcium_traces calcium = make_calcium_traces(duration=10.0,oscillation=False) calcium['traces'].plot() .. image:: /gallery/images/sphx_glr_plot_synthetic_calcium_001.png :class: sphx-glr-single-img The synthetic spikes that underly the synthetic calcium traces are also available .. code-block:: python calcium['spikes'].plot() .. image:: /gallery/images/sphx_glr_plot_synthetic_calcium_002.png :class: sphx-glr-single-img We can also generate synthetic calcium traces where a gamma oscillation provides an input to the population .. code-block:: python calcium = make_calcium_traces(duration=10.0,oscillation=True) calcium['traces'].plot() .. image:: /gallery/images/sphx_glr_plot_synthetic_calcium_003.png :class: sphx-glr-single-img .. _sphx_glr_download_gallery_plot_synthetic_calcium.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_synthetic_calcium.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_synthetic_calcium.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_