-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcell.py
More file actions
47 lines (41 loc) · 1.11 KB
/
cell.py
File metadata and controls
47 lines (41 loc) · 1.11 KB
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
import numpy as np
class Cell:
'''
template of a cell with default parameters
'''
def __init__(self):
self._set_timescales()
self._set_connections()
def _set_timescales(self):
self.alpha_pyr=50
self.alpha_bic=50
self.alpha_cck=80
self.alpha_pv=100
def _set_connections(self):
self.wpyrpyr = 0.03
self.wpyrbic = 0.04
self.wpyrpv = 0.02
self.wbicpyr = -0.03 #-0.08
self.wcckcck = -0.15
self.wcckpv = -0.15
self.wpvpv = -0.055
self.wpvpyr = -0.04 # used to be 0.0399
self.wpvcck = -0.075
# inputs
self.D_pyr = 0.001
self.D_cck = 0.001
self.D_pv = 0.001
self.D_bic = 0.001
self.i_pyr = 0.07
self.i_bic = -1.05
self.i_cck = 0.70
self.i_pv = 0.45
def _set_init_state(self, N):
'''
sets initial state for a simulation
N = number of samples
'''
self.r_pyr = np.zeros(N)
self.r_bic = np.zeros(N)
self.r_cck = np.zeros(N)
self.r_pv = np.zeros(N)