.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/aeif_cond_beta_multisynapse.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_auto_examples_aeif_cond_beta_multisynapse.py: Example of an AEIF neuron with multiple synaptic rise and decay time constants ------------------------------------------------------------------------------ .. only:: html ---- Run this example as a Jupyter notebook: .. card:: :width: 25% :margin: 2 :text-align: center :link: https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fnest%2Fnest-simulator-examples&urlpath=lab%2Ftree%2Fnest-simulator-examples%2Fnotebooks%2Fnotebooks%2Faeif_cond_beta_multisynapse.ipynb&branch=main :link-alt: JupyterHub service .. image:: https://nest-simulator.org/TryItOnEBRAINS.png .. grid:: 1 1 1 1 :padding: 0 0 2 0 .. grid-item:: :class: sd-text-muted :margin: 0 0 3 0 :padding: 0 0 3 0 :columns: 4 See :ref:`our guide ` for more information and troubleshooting. ---- .. GENERATED FROM PYTHON SOURCE LINES 27-60 .. code-block:: Python import matplotlib.pyplot as plt import nest import numpy as np neuron = nest.Create("aeif_cond_beta_multisynapse") nest.SetStatus(neuron, {"V_peak": 0.0, "a": 4.0, "b": 80.5}) nest.SetStatus( neuron, {"E_rev": [0.0, 0.0, 0.0, -85.0], "tau_decay": [50.0, 20.0, 20.0, 20.0], "tau_rise": [10.0, 10.0, 1.0, 1.0]} ) spike = nest.Create("spike_generator", params={"spike_times": np.array([10.0])}) voltmeter = nest.Create("voltmeter") delays = [1.0, 300.0, 500.0, 700.0] w = [1.0, 1.0, 1.0, 1.0] for syn in range(4): nest.Connect( spike, neuron, syn_spec={"synapse_model": "static_synapse", "receptor_type": 1 + syn, "weight": w[syn], "delay": delays[syn]}, ) nest.Connect(voltmeter, neuron) nest.Simulate(1000.0) Vms = voltmeter.get("events", "V_m") ts = voltmeter.get("events", "times") plt.plot(ts, Vms) plt.show() .. _sphx_glr_download_auto_examples_aeif_cond_beta_multisynapse.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: aeif_cond_beta_multisynapse.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: aeif_cond_beta_multisynapse.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_