forked from ThijsHoedemakers/CerebellarLoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathG_Plot_NoPlasticity.py
166 lines (142 loc) · 7.49 KB
/
G_Plot_NoPlasticity.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
from E_Synapses_NoPlasticity import *
if plotting == 'yes':
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('Noise Sources', fontsize=16)
for ji in range(len(Noise_I)):
plot(Noise_statemon.t/ms,Noise_statemon.I[ji]/nA, color='C'+str(ji), label=('Noise_I_'+str(ji)))
legend(loc='best')
xlabel('t (ms)')
ylabel('I (nA)')
legend();
show()
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('I_Noise_PC', fontsize=16)
for pp in range(0,N_Cells_PC):
plot(PC_Statemon_Coupled_noSTDP.t/ms,PC_Statemon_Coupled_noSTDP.I_Noise[pp]/nA, ('C'+str(pp)), label=('I_Noise_PC'+str(1+pp)))
legend(loc='best')
xlabel('t (ms)')
ylabel('I (nA)')
legend();
show()
print('Coupled Scenario')
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('Voltage IO Coupled No Plasticity', fontsize=16)
for ii in range(0,N_Cells_IO):
plot(IO_Statemon_Coupled_noSTDP.t/msecond, IO_Statemon_Coupled_noSTDP.Vs[ii]/mvolt, ('C'+str(ii)), lw='1')
xlabel('Time (ms)')
ylabel('V (mV)')
show()
for pp in range(0,N_Cells_PC,1):
DCN_spikes_Coupled_noSTDP = DCN_Statemon_Coupled_noSTDP.v[:]
Times_DCN_Coupled_noSTDP = DCN_Spikemon_Coupled_noSTDP.values('t')[pp]/(0.025*ms)
print("Number of spikes DCN: %s"% np.size(Times_DCN_Coupled_noSTDP))
# for pp in range(0,N_Cells_PC,1):
# DCN_spikes_Coupled_noSTDP = DCN_Statemon_Coupled_noSTDP.v[:]
# Times_DCN_Coupled_noSTDP = DCN_Spikemon_Coupled_noSTDP.values('t')[pp]/(0.025*ms)
# print("Number of spikes DCN: %s"% np.size(Times_DCN_Coupled_noSTDP))
# for t in range(0,np.size(Times_DCN_Coupled_noSTDP),1):
# i = int(Times_DCN_Coupled_noSTDP[t])
# DCN_spikes_Coupled_noSTDP[pp][i] = 60*mV
# PC_spikes_Coupled_noSTDP = PC_Statemon_Coupled_noSTDP.v[:]
# Times_PC_Coupled_noSTDP = PC_Spikemon_Coupled_noSTDP.values('t')[pp]/(0.025*ms)
# print("Number of spikes PC: %s"% np.size(Times_PC_Coupled_noSTDP))
# for t in range(0,np.size(Times_PC_Coupled_noSTDP),1):
# i = int(Times_PC_Coupled_noSTDP[t])
# PC_spikes_Coupled_noSTDP[pp][i] = 50*mV
# figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
# title('Voltage Cells '+str(pp+1) + ' Coupled', fontsize=16)
# plot(PC_Statemon_Coupled_noSTDP.t/ms, PC_spikes_Coupled_noSTDP[pp]/mV, ('C'+str(2)), label=('PC'+' '+str(pp+1)))
# plot(IO_Statemon_Coupled_noSTDP.t/msecond, IO_Statemon_Coupled_noSTDP.Vs[pp]/mvolt, ('C'+str(3)), lw='4', label=('Vs'+' '+str(pp+1)))
# plot(DCN_Statemon_Coupled_noSTDP.t/ms, DCN_spikes_Coupled_noSTDP[pp]/mV, ('C'+str(4)), lw='1',label=('DCN'+' '+str(pp+1)))
# legend(loc='best')
# xlabel('Time (ms)')
# ylabel('V (mV)')
# legend();
# show()
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('Voltage DCN Cells Coupled', fontsize=16)
for pp in range(0,N_Cells_DCN,1):
plot(DCN_Statemon_Coupled_noSTDP.t/ms, DCN_Statemon_Coupled_noSTDP.v[pp]/mV, ('C'+str(pp)), lw='1',label=('DCN'+' '+str(pp+1)))
legend(loc='best')
xlabel('Time (ms)')
ylabel('V (mV)')
legend();
show()
# for pp in range(0,N_Cells_IO,1):
# figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
# title('Voltage IO Cells '+str(pp+1) + ' Coupled', fontsize=16)
# plot(IO_Statemon_Coupled_noSTDP.t/msecond, IO_Statemon_Coupled_noSTDP.Vs[pp]/mvolt, ('C'+str(3)), lw='4', label=('Vs'+' '+str(pp+1)))
# legend(loc='best')
# xlabel('Time (ms)')
# ylabel('V (mV)')
# legend();
# show()
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('Voltage IO Coupled', fontsize=16)
for ii in range(0,N_Cells_IO):
plot(IO_Statemon_Coupled_noSTDP.t/msecond, IO_Statemon_Coupled_noSTDP.Vs[ii]/mvolt, ('C'+str(ii)), lw='1')
xlabel('Time (ms)')
ylabel('V (mV)')
show()
print('Uncoupled Scenario')
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('Voltage IO Uncoupled No Plasticity', fontsize=16)
for ii in range(0,N_Cells_IO):
plot(IO_Statemon_Uncoupled_noSTDP.t/msecond, IO_Statemon_Uncoupled_noSTDP.Vs[ii]/mvolt, ('C'+str(ii)), lw='1')
xlabel('Time (ms)')
ylabel('V (mV)')
show()
for pp in range(0,N_Cells_PC,1):
DCN_spikes_Uncoupled_noSTDP = DCN_Statemon_Uncoupled_noSTDP.v[:]
Times_DCN_Uncoupled_noSTDP = DCN_Spikemon_Uncoupled_noSTDP.values('t')[pp]/(0.025*ms)
print("Number of spikes DCN: %s"% np.size(Times_DCN_Uncoupled_noSTDP))
# for pp in range(0,N_Cells_PC,1):
# DCN_spikes_Uncoupled_noSTDP = DCN_Statemon_Uncoupled_noSTDP.v[:]
# Times_DCN_Uncoupled_noSTDP = DCN_Spikemon_Uncoupled_noSTDP.values('t')[pp]/(0.025*ms)
# print("Number of spikes DCN: %s"% np.size(Times_DCN_Uncoupled_noSTDP))
# for t in range(0,np.size(Times_DCN_Uncoupled_noSTDP),1):
# i = int(Times_DCN_Uncoupled_noSTDP[t])
# DCN_spikes_Uncoupled_noSTDP[pp][i] = 60*mV
# PC_spikes_Uncoupled_noSTDP = PC_Statemon_Uncoupled_noSTDP.v[:]
# Times_PC_Uncoupled_noSTDP = PC_Spikemon_Uncoupled_noSTDP.values('t')[pp]/(0.025*ms)
# print("Number of spikes PC: %s"% np.size(Times_PC_Uncoupled_noSTDP))
# for t in range(0,np.size(Times_PC_Uncoupled_noSTDP),1):
# i = int(Times_PC_Uncoupled_noSTDP[t])
# PC_spikes_Uncoupled_noSTDP[pp][i] = 50*mV
# figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
# title('Voltage Cells '+str(pp+1) + ' Uncoupled', fontsize=16)
# plot(PC_Statemon_Uncoupled_noSTDP.t/ms, PC_spikes_Uncoupled_noSTDP[pp]/mV, ('C'+str(2)), label=('PC'+' '+str(pp+1)))
# plot(IO_Statemon_Uncoupled_noSTDP.t/msecond, IO_Statemon_Uncoupled_noSTDP.Vs[pp]/mvolt, ('C'+str(3)), lw='4', label=('Vs'+' '+str(pp+1)))
# plot(DCN_Statemon_Uncoupled_noSTDP.t/ms, DCN_spikes_Uncoupled_noSTDP[pp]/mV, ('C'+str(4)), lw='1',label=('DCN'+' '+str(pp+1)))
# legend(loc='best')
# xlabel('Time (ms)')
# ylabel('V (mV)')
# legend();
# show()
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('Voltage DCN Cells Uncoupled', fontsize=16)
for pp in range(0,N_Cells_DCN,1):
plot(DCN_Statemon_Uncoupled_noSTDP.t/ms, DCN_Statemon_Uncoupled_noSTDP.v[pp]/mV, ('C'+str(pp)), lw='1',label=('DCN'+' '+str(pp+1)))
legend(loc='best')
xlabel('Time (ms)')
ylabel('V (mV)')
legend();
show()
# for pp in range(0,N_Cells_IO,1):
# figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
# title('Voltage IO Cells '+str(pp+1) + ' Uncoupled', fontsize=16)
# plot(IO_Statemon_Uncoupled_noSTDP.t/msecond, IO_Statemon_Uncoupled_noSTDP.Vs[pp]/mvolt, ('C'+str(3)), lw='4', label=('Vs'+' '+str(pp+1)))
# legend(loc='best')
# xlabel('Time (ms)')
# ylabel('V (mV)')
# legend();
# show()
figure(figsize=(15, 4), dpi= 80, facecolor='w', edgecolor='k')
title('Voltage IO Uncoupled', fontsize=16)
for ii in range(0,N_Cells_IO):
plot(IO_Statemon_Uncoupled_noSTDP.t/msecond, IO_Statemon_Uncoupled_noSTDP.Vs[ii]/mvolt, ('C'+str(ii)), lw='1')
# legend(loc='best')
xlabel('Time (ms)')
ylabel('V (mV)')
# legend();
show()