Skip to content

Commit

Permalink
improved gap junction documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
janhahne committed Jan 4, 2017
1 parent ee336a2 commit db99b12
Showing 1 changed file with 1 addition and 15 deletions.
Expand Up @@ -13,18 +13,7 @@ The synapse model to create a gap-junction connection is named `gap_junction`.
Unlike chemical synapses gap junctions are bidirectional connections.
In order to create **one** accurate gap-junction connection
**two** NEST connections are required:

```python
import nest

a = nest.Create('hh_psc_alpha_gap')
b = nest.Create('hh_psc_alpha_gap')
# Create gap junction between neurons a and b
nest.Connect(a, b, {'rule': 'one_to_one'}, {'model': 'gap_junction', 'weight': 0.5})
nest.Connect(b, a, {'rule': 'one_to_one'}, {'model': 'gap_junction', 'weight': 0.5})
```

Thus for each created connection a second connection with the exact same parameters
For each created connection a second connection with the exact same parameters
in the opposite direction is required.
NEST provides the possibility to create both connections with a single call to `nest.Connect`
via the `make_symmetric` flag (default value: `False`) of the connection dictionary:
Expand All @@ -45,9 +34,6 @@ is restricted to
- `one_to_one` connections with `'make_symmetric': True`
- `all_to_all` connections with equal source and target populations and default or scalar parameters

Accordingly the first script is only for demonstrative purposes and will result in an
error when executed with NEST 2.12.

## Create random connections

NEST random connection rules like `fixed_total_number`, `fixed_indegree` etc. cannot be
Expand Down

0 comments on commit db99b12

Please sign in to comment.