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