Skip to content

Commit

Permalink
Merge pull request #816 from jessica-mitchell/minor_doc_corrections
Browse files Browse the repository at this point in the history
Fixing various typos in PyNEST documenation
  • Loading branch information
jougs committed Sep 5, 2017
2 parents ca505cf + 13c8702 commit e223579
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -71,9 +71,9 @@ for.

dir(nest)

One such command is `nest.Models()`, which will return a list of all the
One such command is `nest.Models?`, which will return a list of all the
available models you can use. If you want to obtain more information about a
particular command, you may use Python’s standard help system.
particular command, you may use IPython’s standard help system.

nest.Models?

Expand Down Expand Up @@ -377,7 +377,7 @@ current, and add a second neuron.
nest.SetStatus(neuron1, {"I_e": 376.0})
neuron2 = nest.Create("iaf_psc_alpha")
multimeter = nest.Create("multimeter")
nest.SetStatus(multimeter, {"withtime":True, "record_from":["V_m"]}
nest.SetStatus(multimeter, {"withtime":True, "record_from":["V_m"]})

We now connect `neuron1` to `neuron2`, and record the membrane potential from
`neuron2` so we can observe the postsynaptic potentials caused by the spikes of
Expand Down
Expand Up @@ -112,15 +112,15 @@ each of them, which is more efficient, and thus to be preferred. One way to do
it is to give a list of dictionaries which is the same length as the number of
nodes to be parameterised, for example using a list comprehension:

dVms = [{"V_m": Vrest+(Vth-Vrest)\*numpy.random.rand()} for x in epop1]
dVms = [{"V_m": Vrest+(Vth-Vrest)*numpy.random.rand()} for x in epop1]
nest.SetStatus(epop1, dVms)

If we only need to randomise one parameter then there is a more concise way by
passing in the name of the parameter and a list of its desired values. Once
again, the list must be the same size as the number of nodes to be
parameterised:

Vms = Vrest+(Vth-Vrest)\*numpy.random.rand(len(epop1))
Vms = Vrest+(Vth-Vrest)*numpy.random.rand(len(epop1))
nest.SetStatus(epop1, "V_m", Vms)

Note that we are being rather lax with random numbers here. Really we have to
Expand Down
Expand Up @@ -25,7 +25,7 @@ subdirectory: `pynest/examples/`.
## Parameterising synapse models

NEST provides a variety of different synapse models. You can see the available
models by using the command `Models(synapses)`, which picks only the synapse
models by using the command `nest.Models(mtype='synapses')`, which picks only the synapse
models out of the list of all available models.

Synapse models can be parameterised analogously to neuron models. You can
Expand Down

0 comments on commit e223579

Please sign in to comment.