Skip to content
Snippets Groups Projects
Commit d9be4e15 authored by Viktor Vorobev's avatar Viktor Vorobev Committed by Ugo Albanese
Browse files

Merged in NRRPLT-8242-fix-docstrings (pull request #30)

[NRRPLT-8242] Fix docstrings

Approved-by: Ugo Albanese
Approved-by: Eloy Retamino
parent 514f5943
No related branches found
No related tags found
No related merge requests found
......@@ -130,10 +130,10 @@ class DistributedPyNNCommunicationAdapter(PyNNNestCommunicationAdapter):
Notify remote MPI Brain Processes that they must complete this transfer function
connection by duplicating the parameters for this device connection.
:param kind Either 'source' or 'sink'.
:param populations The target population to connect to.
:param device The device to create.
:param params The dictionary of adapter params to use.
:param kind: Either 'source' or 'sink'.
:param populations: The target population to connect to.
:param device: The device to create.
:param params: The dictionary of adapter params to use.
"""
# timestamp the adapter creation, we have no other way of tracking it between
......@@ -190,7 +190,7 @@ class DistributedPyNNCommunicationAdapter(PyNNNestCommunicationAdapter):
Notify remote MPI Brain Processes that they must delete transfer function
connection by duplicating the calls in this process.
:param timestep The creation timestep of the TF to delete.
:param timestep: The creation timestep of the TF to delete.
"""
# propagate the deletion configuration to all other processes, guaranteed to be
......
......@@ -58,6 +58,7 @@ class DaintLauncher(object):
def add_host(self, hostname, tmpdir, processes=1):
"""
Ignore add_host in daint. Slurm (srun) manages this internally
:param hostname: ignored
:param tmpdir: ignored
:param processes: ignored
......@@ -204,7 +205,7 @@ class DaintLauncher(object):
progress bar. Wait for completion of the CLE loading task and mark the MPI process as
successfully launched.
:param msg The ros message to parse.
:param msg: The ros message to parse.
"""
status = json.loads(msg.data)
......
......@@ -45,7 +45,7 @@ def launch_cle(argv): # pragma: no cover
Launch the distributed CLE process with given assembly class. Process the command line and
handles all shutdown events to terminate other MPI processes.
:param assembly_class An invokable CLEGazeboSimulationAssembly class definition to use.
:param assembly_class: An invokable CLEGazeboSimulationAssembly class definition to use.
"""
# import MPI here, must be done after Nest in subclass adapters
......
......@@ -46,7 +46,7 @@ class DistributedCLESimulationAssembly(CLEGazeboSimulationAssembly):
"""
Creates a new simulation assembly to simulate an experiment using the CLE and Gazebo
:param sim_config A sim config object that "similar" to the one used for the CLE process
:param sim_config: A sim config object that "similar" to the one used for the CLE process
"""
super(DistributedCLESimulationAssembly, self).__init__(sim_config)
......
......@@ -66,9 +66,9 @@ class MPILauncher(object):
"""
Add a target host to the mpi launch configuration.
:param hostname The remote host name or ip.
:param tmpdir A valid temporary directory on the remote host to launch in.
:param processes The number of processes for this host.
:param hostname: The remote host name or ip.
:param tmpdir: A valid temporary directory on the remote host to launch in.
:param processes: The number of processes for this host.
"""
self._hosts.append('-np {p} -host {h} -wdir {t}'
.format(p=processes, h=hostname, t=tmpdir))
......@@ -137,7 +137,7 @@ class MPILauncher(object):
progress bar. Wait for completion of the CLE loading task and mark the MPI process as
successfully launched.
:param msg The ros message to parse.
:param msg: The ros message to parse.
"""
status = json.loads(msg.data)
......
......@@ -58,7 +58,7 @@ class NestBrainProcess(object):
Nest will automatically allocate the brain in a round-robin
fashion under the hood, we do not need to do anything explicitly.
:param sim_config A sim config object that "similar" to the one used for the CLE process
:param sim_config: A sim config object that "similar" to the one used for the CLE process
"""
self._sim_config = sim_config
......@@ -172,7 +172,7 @@ class NestBrainProcess(object):
Reflect a transfer function connection made on the CLE side by performing the same
connection on this side.
:param params The connectivity/synapse parameters passed by the CLE.
:param params: The connectivity/synapse parameters passed by the CLE.
"""
# get the population of neurons from params
......@@ -252,7 +252,7 @@ class NestBrainProcess(object):
"""
Disconnect the specified device and remove it from tracking.
:param params The device parameters passed by the CLE.
:param params: The device parameters passed by the CLE.
"""
device = self.devices.pop(params['timestep'], None)
......@@ -269,7 +269,7 @@ class NestBrainProcess(object):
"""
Load/reload the brain file and population definitions.
:param params The brain parameters passed by the CLE.
:param params: The brain parameters passed by the CLE.
"""
# ignore any commands during simulation construction
......
......@@ -55,10 +55,10 @@ class NestLauncher(object):
:param exc: the experiment configuration
:param bibi: the BIBI configuration.
:param server_host Target Gazebo/brain process host (e.g. local or lugano)
:param reservation Reservation string for cluster backend (None is a valid option)
:param sim_id The id of the simulation/experiment to be launched.
:param timeout The default simulation timeout (time initially allocated).
:param server_host: Target Gazebo/brain process host (e.g. local or lugano)
:param reservation: Reservation string for cluster backend (None is a valid option)
:param sim_id: The id of the simulation/experiment to be launched.
:param timeout: The default simulation timeout (time initially allocated).
"""
self._sim_config = sim_config
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment