PyNEST API listing¶
Connection module¶
Functions for connection handling
Connect pre nodes to post nodes. |
|
Connect pre nodes to post nodes and a third-factor nodes. |
|
Disconnect connections in a SynapseCollection, or pre neurons from post neurons. |
|
Return a SynapseCollection representing the connection identifiers. |
Info module¶
Functions to get information on NEST.
Print the authors of NEST. |
|
Return argv as seen by NEST. |
|
Return the parameter dictionaries of nodes or connections. |
|
Return verbosity level of NEST's messages. |
|
Display the help page for the given object in a pager. |
|
Open the NEST documentation index in a browser. |
|
Print a message using message system of NEST. |
|
Set parameters of nodes or connections. |
|
Change verbosity level for NEST's messages. |
|
Print information on the platform on which NEST was compiled. |
Models module¶
Functions for model handling
Return a tuple of all available connection rules, sorted by name. |
|
Create a new model by copying an existing one. |
|
Return defaults of the given model or recording backend. |
|
Return a tuple of neuron, device, or synapse model names. |
|
Set defaults for the given model or recording backend. |
Node module¶
Functions for node handling
Create one or more nodes. |
|
Get local nodes of a NodeCollection as a new NodeCollection. |
|
|
Return all nodes with the given properties as NodeCollection. |
Print the node ID ranges and model names of all the nodes in the network. |
Parallel computing module¶
Functions for parallel computing
Return the overall number of MPI processes. |
|
Return the MPI rank of the local process. |
|
Return iterable representing the VPs local to the MPI rank. |
|
Set the acceptable latency (in ms) for a MUSIC port. |
|
Set the maximum buffer size for a MUSIC port. |
|
Synchronize all MPI processes. |
Simulation module¶
Functions for simulation control
Cleans up resources after a Run calls. |
|
Disable structural plasticity for the network simulation |
|
Enable structural plasticity for the network simulation |
|
Obtain parameters of the simulation kernel. |
|
Load a dynamically linked NEST module. |
|
Calibrate the system before a Run call. |
|
Reset the simulation kernel. |
|
Simulate the network for t milliseconds. |
|
ContextManager for Run |
|
Set parameters for the simulation kernel. |
|
Simulate the network for t milliseconds. |
Sonata module¶
Functions to build and simulate networks with the SONATA format
|
Class for building and simulating networks represented by the SONATA format. |
Spatial module¶
Functions relating to spatial properties of nodes
|
Create a spatial mask for connections. |
|
Get vector of lateral displacement from node(s)/Position(s) from_arg to node(s) to_arg. |
|
Get lateral distances from node(s)/position(s) from_arg to node(s) to_arg. |
|
Write connectivity information to file. |
|
Write node ID and position data of layer to file. |
|
Return NodeCollection of node closest to center of layer. |
|
Return the node(s) closest to the locations in the given layer. |
|
Return the spatial locations of nodes. |
|
Obtain targets of sources in given target population. |
|
Obtain sources of targets in given src_layer population. |
|
Obtain positions of targets to a given NodeCollection of sources. |
|
Obtain positions of sources to a given NodeCollection of targets. |
|
Plot all nodes in a layer. |
|
Create a plot of the connection probability and/or mask. |
|
Plot all targets of source neuron src_nrn in a target layer tgt_layer. |
|
Plot all sources of target neuron tgt_nrn in a source layer src_layer. |
|
Obtain the node IDs inside a masked area of a spatially distributed population. |
Types module¶
Classes defining the different PyNEST types
|
Class for collocated synapse specifications. |
|
|
|
Create a parameter. |
|
Class for spatial masks. |
|
Class for NodeCollection. |
|
Class for parameters |
|
|
|
Serialize data for JSON. |
|
Class for Connections. |
|
Convert the object to a JSON string. |
Logic module¶
|
Yields one value or another, based on the condition. |
Math module¶
|
Calculate the exponential of the parameter |
|
Calculate the sine of the parameter |
|
Calculate the cosine of the parameter |
|
Yields the smallest value of the value of a parameter and a given value |
|
Yields the largest value of the value of a parameter and a given value |
|
Redraws the value of the parameter if it is outside of the given limits |
Kernel attributes (nest.NestModule)¶
A module class for the nest
root module to control the dynamic generation
of module level attributes such as the KernelAttributes, lazy loading
some submodules and importing the public APIs of the lib submodules.
Get the complete kernel status. |
|
The resolution of the simulation (in ms), defaults to |
|
The current simulation time (in ms). |
|
The number of steps yet to be simulated. |
|
The maximum delay in the network, defaults to |
|
The minimum delay in the network, defaults to |
|
The number of milliseconds per tic. |
|
The number of tics per millisecond. |
|
The number of tics per simulation time step. |
|
The largest representable time value. |
|
The smallest representable time value. |
|
List of available random number generator types. |
|
Name of random number generator type used by NEST, defaults to |
|
Seed value used as base for seeding NEST random number generators (\(1 \leq s\leq 2^{32}-1\)), defaults to |
|
The total number of virtual processes, defaults to |
|
The local number of threads, defaults to |
|
The number of MPI processes. |
|
Whether to transmit precise spike times in MPI communication. |
|
Whether MPI buffers for communication of connections resize on the fly, defaults to |
|
Size of MPI send buffers for communicating secondary events (in bytes, per MPI rank, for developers). |
|
Size of MPI recv buffers for communicating secondary events (in bytes, per MPI rank, for developers). |
|
Total size of MPI buffer for communication of spikes, defaults to |
|
Total size of MPI buffer for communication of connections, defaults to |
|
If MPI buffers for communication of connections resize on the fly, grow them by this factor each round, defaults to |
|
Maximal size of MPI buffers for communication of connections, defaults to |
|
When spike exchange buffer is expanded, resize it to (1 + spike_buffer_grow_extra) * required_buffer_size, defaults to |
|
If the largest number of spikes sent from any rank to any rank is less than spike_buffer_shrink_limit * buffer_size, then reduce buffer size. |
|
When the buffer shrinks, set the new size to (1 + spike_buffer_shrink_spare) * required_buffer_size. |
|
Log of spike buffer resizing as a dictionary. |
|
Whether to use waveform relaxation method, defaults to |
|
Desired waveform relaxation communication interval, defaults to |
|
Convergence tolerance of waveform relaxation method, defaults to |
|
Maximal number of iterations used for waveform relaxation, defaults to |
|
Interpolation order of polynomial used in wfr iterations, defaults to |
|
Maximal number of synapse models supported. |
|
Defines all synapses which are plastic for the structural plasticity algorithm. |
|
Defines the time interval in ms at which the structural plasticity manager will make changes in the structure of the network ( creation and deletion of plastic synapses), defaults to |
|
The list of the available structural plasticity growth curves. |
|
Whether to use spike compression; if a neuron has targets on multiple threads of a process, this switch makes sure that only a single packet is sent to the process instead of one packet per target thread; it implies that connections are sorted by source., defaults to |
|
A path, where all data is written to, defaults to current directory. |
|
A common prefix for all data files. |
|
Whether to overwrite existing data files, defaults to |
|
Whether to print progress information during the simulation, defaults to |
|
The number of nodes in the network. |
|
The number of connections in the network. |
|
The list of available connection rules. |
|
The list of the available node (i.e., neuron or device) models. |
|
The list of the available synapse models. |
|
Number of spikes fired by neurons on a given MPI rank during the most recent call to |
|
List of available backends for recording devices. |
|
List of available backends for stimulation devices. |
|
Whether missed dictionary entries are treated as errors, defaults to |
|
Whether to keep source table after connection setup is complete, defaults to |
|
Shortest wall-clock time measured so far for a full update step [seconds]. |
|
Longest wall-clock time measured so far for a full update step [seconds]. |
|
Maximum wall-clock time for one full update step [seconds]. |
|
Task-specific update interval of the e-prop plasticity mechanism [ms]., defaults to |
|
Task-specific learning window of the e-prop plasticity mechanism [ms]., defaults to |
|
If True, reset dynamic variables of e-prop neurons upon e-prop update., defaults to |
Random module¶
|
Draws samples from an exponential distribution. |
|
Draws samples from a log-normal distribution. |
|
Draws samples from a normal distribution. |
|
Draws samples from a uniform distribution. |
|
Draws integer samples from a uniform distribution. |
Raster_plot module¶
Functions for raster plotting.
|
Extract all events within a given time interval. |
|
Plot raster plot from data array. |
|
Plot raster from a spike recorder. |
|
Plot raster from file. |
|
Use numpy. |
|
Use pandas. |
Server module¶
|
The flask object implements a WSGI application and acts as the central object. |
|
|
|
|
|
|
|
Get the NEST API call and convert arguments if neccessary. |
Spatial positions functions¶
|
Defines grid-based positions for nodes. |
|
Defines positions for nodes based on a list of positions, or a Parameter object. |
|
Position of node in a specific dimension. |
Position of the source node in a specific dimension. |
|
Position of the target node in a specific dimension. |
Spatial distribution functions¶
|
Applies an exponential distribution on a Parameter. |
|
Applies a gaussian distribution on a Parameter. |
|
Applies a bivariate gaussian distribution on two Parameters, representing values in the x and y direction. |
|
Applies a gamma distribution on a Parameter. |
|
Applies a rectified Gabor function on two Parameters, representing displacements in the x and y direction. |
Visualization module¶
Functions to visualize a network built in NEST.
|
Plot the given nodes and the connections that originate from them. |
Voltage_trace module¶
Functions to plot voltage traces.
|
Plot the membrane potential of a set of neurons recorded by the given voltmeter or multimeter. |
|
Plot voltage trace from file. |