You didn't answer my question
Code: Select all
What GUI tool are you using to change parameters?
but you're talking about subsets, so I will presume that you are using the CellBuilder.
Code: Select all
Is there a way to have a change in the subset extend to each section in within the subset while still maintaining the ability to change each section individually?
With "Specify Strategy" checked, you could select the subset and also each of the individual members of the subset.
For example, suppose I had a subset called main that contained soma, dend, and axon. On the Biophysics page, with "Specify Strategy" checked, the middle column of the CellBuilder would contain these names:
all
main
soma
dend
axon
Then when I clear the "Specify Strategy" checkbox, the Biophysics page would allow me to set the properties of all, main, soma, dend and axon. Since the model specification is executed from top to bottom, anything I do to all could be overridden by whatever I do to main. Likewise, anything I do to main could be overridden by whatever I do to the individual sections soma, dend, or axon.
This is OK for simple models, but it becomes inconvenient if the model is even a little complex. I find that the CellBuilder is great for dealing with subsets, but as soon as I need to deal with individual sections, I have to turn off the CellBuilder's Continuous Create button (this can be done with a hoc statement) and start using hoc code that I write myself.
I often find it useful to do something like this:
Code: Select all
load_file("nrngui.hoc")
load_file("cell.ses") // a CellBuilder saved with Continuous Create on
CellBuild[0].continuous = 0 // turn off Continuous create
// to keep the CellBuilder from overwriting any changes that I make
proc chage_some_section() {
. . . statements that tweak the parameters of one or more sections . . .
}
change_some_section()