示例#1
0
# ======================================================
# END MIGFER
# ======================================================

DEND_IDS = []
RHESYN_POSITIONS = []
N_RHESYN = 0

neuronNodes = xmldoc.getElementsByTagName('Neuron')
# ATTENTION, cette config, dans son ensemble, ne marche que pour un seul neuron
for neuron in neuronNodes:
	description = neuron.getAttribute('description')
	name = neuron.getAttribute('name')
	print name, description
	synapses = neuron.getElementsByTagName('Synapse')
	for synapse in synapses:
		positionNode = synapse.getElementsByTagName('Position')[0]
		section = positionNode.getAttribute('Section')
		position = positionNode.childNodes[0].data
		DEND_IDS.append(section)
		RHESYN_POSITIONS.append(position)
		N_RHESYN = N_RHESYN + 1

print DEND_IDS
print RHESYN_POSITIONS
print N_RHESYN


# creates the object references (synapses + current clamps)
h('objref RHESYN['+str(N_RHESYN)+']')