.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/Potjans_2014/stimulus_params.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_Potjans_2014_stimulus_params.py: PyNEST Microcircuit: Stimulus Parameters ----------------------------------------------- .. 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%2FPotjans_2014%2Fstimulus_params.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. ---- A dictionary with parameters for an optional external transient stimulation. Thalamic input and DC input can be switched on individually. .. GENERATED FROM PYTHON SOURCE LINES 29-65 .. code-block:: Python import numpy as np stim_dict = { # optional thalamic input # turn thalamic input on or off (True or False) "thalamic_input": False, # start of the thalamic input (in ms) "th_start": 700.0, # duration of the thalamic input (in ms) "th_duration": 10.0, # rate of the thalamic input (in spikes/s) "th_rate": 120.0, # number of thalamic neurons "num_th_neurons": 902, # connection probabilities of the thalamus to the different populations # (same order as in 'populations' in 'net_dict') "conn_probs_th": np.array([0.0, 0.0, 0.0983, 0.0619, 0.0, 0.0, 0.0512, 0.0196]), # mean amplitude of the thalamic postsynaptic potential (in mV), # standard deviation will be taken from 'net_dict' "PSP_th": 0.15, # mean delay of the thalamic input (in ms) "delay_th_mean": 1.5, # relative standard deviation of the thalamic delay (in ms) "delay_th_rel_std": 0.5, # optional DC input # turn DC input on or off (True or False) "dc_input": False, # start of the DC input (in ms) "dc_start": 650.0, # duration of the DC input (in ms) "dc_dur": 100.0, # amplitude of the DC input (in pA); final amplitude is population-specific # and will be obtained by multiplication with 'K_ext' "dc_amp": 0.3, } .. _sphx_glr_download_auto_examples_Potjans_2014_stimulus_params.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: stimulus_params.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: stimulus_params.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_