2
from brian.experimental.codegen.threshold import *
13
print '**** C CODE *****'
14
print generate_c_threshold(eqs, threshold)
16
print '**** PYTHON CODE ****'
17
print generate_python_threshold(eqs, threshold)
19
GP = NeuronGroup(10, eqs, threshold=PythonThreshold(threshold), reset=0 * volt)
20
GC = NeuronGroup(10, eqs, threshold=CThreshold(threshold), reset=0 * volt)
24
GP.V[[1, 2, 4, 8]] = 2
27
GC.V[[1, 2, 4, 8]] = 2