access point process parameters in template
Posted: Sat May 21, 2016 8:18 am
Hi,
I use templates for my morphologies, but also for artificial cells such as NetStim, IntFire etc (is necessary that my Matlab2Neuron interface works properly)
However when I initialize such a NetStim for example, I cannot access the parameters (number, start, noise etc) from outside the template. Since the code should be open also to new, self-made artificial cells, I cannot write all the classes explicitly. So my question, is there a way to make every class public in a template? Or to receive all RANGE/PUBLIC variables from an artificial cell within NEURON so that I can make them public afterwards?
Thank you very much!
I use templates for my morphologies, but also for artificial cells such as NetStim, IntFire etc (is necessary that my Matlab2Neuron interface works properly)
Code: Select all
begintemplate cell_NetStim
public cell
public is_artificial
objref cell
proc celldef() {
cell = new NetStim()
is_artificial = 1}
proc init() {
celldef()
}
endtemplate cell_NetStim
Thank you very much!