forked from gmtiddia/ngpu_dynamic_network_creation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstimulus_params.py
65 lines (59 loc) · 2.23 KB
/
stimulus_params.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
#
# stimulus_params.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# NEST is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
""" PyNEST Microcircuit: Stimulus Parameters
-----------------------------------------------
A dictionary with parameters for an optional external transient stimulation.
Thalamic input and DC input can be switched on individually.
"""
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}