Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.ml_neurons.append(ml)
elif attr_dict['model'] == 'LeakyIAF':
lif = LifNeuron(id=n,
extern=attr_dict['extern'],
public=attr_dict['public'],
spiking=attr_dict['spiking'],
V=attr_dict['V'],
Vr=attr_dict['Vr'],
Vt=attr_dict['Vt'],
R=attr_dict['R'],
C=attr_dict['C'])
module.lif_neurons.append(lif)
for s in g.edges():
attr_dict = g.edge[s[0]][s[1]]
if attr_dict['model'] == 'AlphaSynapse':
al = AlSynapse(id=attr_dict['name'],
class_=attr_dict['class'],
ar=attr_dict['ar'],
ad=attr_dict['ad'],
gmax=attr_dict['gmax'],
reverse=attr_dict['reverse'])
module.al_synapses.append(al)
elif attr_dict['model'] == 'power_gpot_gpot':
pgg = PGGSynapse(id=attr_dict['name'],
class_=attr_dict['class'],
slope=attr_dict['slope'],
threshold=attr_dict['threshold'],
power=attr_dict['power'],
saturation=attr_dict['saturation'],
delay=attr_dict['delay'],
reverse=attr_dict['reverse'],
conductance=attr_dict['conductance'])