Skip to content

Commit

Permalink
fixed a bug in Axial synapses
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-s committed May 9, 2021
1 parent 75486d5 commit 2af1173
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c++/synapses/Axial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void Axial::connect(compartment *pcomp1_, compartment *pcomp2_) {
gmax = (amu*amu_*amu_)/((resistivity*Lmu)*(Lmu*amu_*amu_ + Lmu_*amu*amu));

if (isnan(gmax)) {
mexPrintf("[WARNING] the maximal conductance of this axial synapse could not be computed. This is probably because you have not specified the geometrical parameters of all compartments.")
mexPrintf("[WARNING] the maximal conductance of this axial synapse could not be computed. This is probably because you have not specified the geometrical parameters of all compartments.");
}
}

Expand Down
6 changes: 4 additions & 2 deletions docs/how-to/database-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ never spike (you may want to, but for this example, we don't).
So we need to define a `DiscardFcn` that tells `xfind` when to save parameters and outputs from `SimFcn`, and when to
skip them.

```
```matlab
% we are using an anonymous function for this simple example
p.DiscardFcn = @(data) data <= 0;
```
Expand All @@ -81,10 +81,12 @@ using all cores using

```matlab
p.parallelSearch;
```

```
Starting workers...
Starting worker #8
Starting worker #7
Warning: Objects of class 'parallel.FevalFuture' cannot be saved to MAT files.
Starting worker #6
Starting worker #5
Starting worker #4
Expand Down

0 comments on commit 2af1173

Please sign in to comment.