-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmosinit.hoc
More file actions
28 lines (25 loc) · 866 Bytes
/
mosinit.hoc
File metadata and controls
28 lines (25 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
load_file("nrngui.hoc")
//Set axon diameter
proc adiameter(){
axonD=$1
printf ("axon diameter = %.10g \n", axonD)
}
adiameter(0.4) // set default axon diameter
// Input axon diameter and longitudinal mitochondrial occupancy
objref box
box = new VBox()
box.intercept(1)
xpanel("")
xlabel("Select axon diameter first")
xradiobutton("Axon diameter = 0.2 um", "adiameter(0.2)")
xradiobutton("Axon diameter = 0.4 um", "adiameter(0.4)")
xradiobutton("Axon diameter = 0.6 um", "adiameter(0.6)")
xpanel()
xpanel("")
xlabel("Select longitudinal coverage second")
xradiobutton("5% longitudinal coverage", "xopen(\"topo05.hoc\") box.unmap()")
xradiobutton("12.5% longitudinal coverage", "xopen(\"topo125.hoc\") box.unmap()")
xradiobutton("20% longitudinal coverage", "xopen(\"topo20.hoc\") box.unmap()")
xpanel()
box.intercept(0)
box.map("Setup")