How to access the object of a list
Posted: Fri Dec 11, 2015 4:53 am
Hello,
i have this program
load_file("nrngui.hoc")
create soma[5]
objref listsoma
forall insert pas
listsoma = new SectionList()
forall {
listsoma.append()
}
access listsoma.object(0)
print secname()
The problem is access listsoma.object(0). In particular the error is the following
NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
1
object not a public member of SectionList
c:\nrn\bin\nrniv.exe: SectionList object
in C:/Users/alessandra/Desktop/test-nc.hoc near line 13
access listsoma.object(0)
^
How can i solve the problem?
Than you
Alessandra
i have this program
load_file("nrngui.hoc")
create soma[5]
objref listsoma
forall insert pas
listsoma = new SectionList()
forall {
listsoma.append()
}
access listsoma.object(0)
print secname()
The problem is access listsoma.object(0). In particular the error is the following
NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
1
object not a public member of SectionList
c:\nrn\bin\nrniv.exe: SectionList object
in C:/Users/alessandra/Desktop/test-nc.hoc near line 13
access listsoma.object(0)
^
How can i solve the problem?
Than you
Alessandra