Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit e9f01c7

Browse files
author
Jaquier Aurélien Tristan
committed
fix tests
1 parent ed11859 commit e9f01c7

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

examples/stochkv/stochkv3cell.hoc

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ begintemplate stochkv3_cell
2727
public all, somatic, apical, axonal, basal, myelinated, APC
2828
objref all, somatic, apical, axonal, basal, myelinated, APC
2929

30+
obfunc getCell(){
31+
return this
32+
}
33+
3034
proc init(/* args: morphology_dir, morphology_name */) {
3135
all = new SectionList()
3236
apical = new SectionList()
@@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
98102
this.soma[0] distance(0, 0.5)
99103
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
100104
forsec sl for(x, 0) {
105+
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
101106
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
102107
execute(stmp)
103108
}

examples/stochkv/stochkv3cell_det.hoc

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ begintemplate stochkv3_cell
2727
public all, somatic, apical, axonal, basal, myelinated, APC
2828
objref all, somatic, apical, axonal, basal, myelinated, APC
2929

30+
obfunc getCell(){
31+
return this
32+
}
33+
3034
proc init(/* args: morphology_dir, morphology_name */) {
3135
all = new SectionList()
3236
apical = new SectionList()
@@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
98102
this.soma[0] distance(0, 0.5)
99103
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
100104
forsec sl for(x, 0) {
105+
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
101106
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
102107
execute(stmp)
103108
}

examples/stochkv/stochkvcell.hoc

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ begintemplate stochkv_cell
2727
public all, somatic, apical, axonal, basal, myelinated, APC
2828
objref all, somatic, apical, axonal, basal, myelinated, APC
2929

30+
obfunc getCell(){
31+
return this
32+
}
33+
3034
proc init(/* args: morphology_dir, morphology_name */) {
3135
all = new SectionList()
3236
apical = new SectionList()
@@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
98102
this.soma[0] distance(0, 0.5)
99103
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
100104
forsec sl for(x, 0) {
105+
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
101106
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
102107
execute(stmp)
103108
}

examples/stochkv/stochkvcell_det.hoc

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ begintemplate stochkv_cell
2727
public all, somatic, apical, axonal, basal, myelinated, APC
2828
objref all, somatic, apical, axonal, basal, myelinated, APC
2929

30+
obfunc getCell(){
31+
return this
32+
}
33+
3034
proc init(/* args: morphology_dir, morphology_name */) {
3135
all = new SectionList()
3236
apical = new SectionList()
@@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
98102
this.soma[0] distance(0, 0.5)
99103
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
100104
forsec sl for(x, 0) {
105+
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
101106
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
102107
execute(stmp)
103108
}

0 commit comments

Comments
 (0)