Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaquier Aurélien Tristan committed Feb 2, 2024
1 parent ed11859 commit e9f01c7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/stochkv/stochkv3cell.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ begintemplate stochkv3_cell
public all, somatic, apical, axonal, basal, myelinated, APC
objref all, somatic, apical, axonal, basal, myelinated, APC

obfunc getCell(){
return this
}

proc init(/* args: morphology_dir, morphology_name */) {
all = new SectionList()
apical = new SectionList()
Expand Down Expand Up @@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
this.soma[0] distance(0, 0.5)
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
forsec sl for(x, 0) {
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
execute(stmp)
}
Expand Down
5 changes: 5 additions & 0 deletions examples/stochkv/stochkv3cell_det.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ begintemplate stochkv3_cell
public all, somatic, apical, axonal, basal, myelinated, APC
objref all, somatic, apical, axonal, basal, myelinated, APC

obfunc getCell(){
return this
}

proc init(/* args: morphology_dir, morphology_name */) {
all = new SectionList()
apical = new SectionList()
Expand Down Expand Up @@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
this.soma[0] distance(0, 0.5)
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
forsec sl for(x, 0) {
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
execute(stmp)
}
Expand Down
5 changes: 5 additions & 0 deletions examples/stochkv/stochkvcell.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ begintemplate stochkv_cell
public all, somatic, apical, axonal, basal, myelinated, APC
objref all, somatic, apical, axonal, basal, myelinated, APC

obfunc getCell(){
return this
}

proc init(/* args: morphology_dir, morphology_name */) {
all = new SectionList()
apical = new SectionList()
Expand Down Expand Up @@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
this.soma[0] distance(0, 0.5)
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
forsec sl for(x, 0) {
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
execute(stmp)
}
Expand Down
5 changes: 5 additions & 0 deletions examples/stochkv/stochkvcell_det.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ begintemplate stochkv_cell
public all, somatic, apical, axonal, basal, myelinated, APC
objref all, somatic, apical, axonal, basal, myelinated, APC

obfunc getCell(){
return this
}

proc init(/* args: morphology_dir, morphology_name */) {
all = new SectionList()
apical = new SectionList()
Expand Down Expand Up @@ -98,6 +102,7 @@ proc distribute_distance(){local x localobj sl
this.soma[0] distance(0, 0.5)
sprint(distfunc, "%%s %s(%%f) = %s", mech, distfunc)
forsec sl for(x, 0) {
// use distance(x) twice for the step distribution case, e.g. for calcium hotspot
sprint(stmp, distfunc, secname(), x, distance(x), distance(x))
execute(stmp)
}
Expand Down

0 comments on commit e9f01c7

Please sign in to comment.