@@ -239,8 +239,6 @@ def distance(src_cell: IDMixin, tgt_cell: IDMixin,
239239 periodic_boundaries : Optional [Tuple [
240240 Optional [Tuple [int , int ]]]] = None ) -> float :
241241 """
242- Return the Euclidean distance between two cells.
243-
244242 :param src_cell: Measure from this cell
245243 :param tgt_cell: To this cell
246244 :param mask:
@@ -254,6 +252,7 @@ def distance(src_cell: IDMixin, tgt_cell: IDMixin,
254252 (the post-synaptic position is multiplied by this quantity).
255253 :param offset:
256254 :param periodic_boundaries:
255+ :returns: The Euclidean distance between two cells.
257256 """
258257 return _pynn_distance (
259258 src_cell , tgt_cell , mask , scale_factor , offset , periodic_boundaries )
@@ -348,7 +347,7 @@ def setup(timestep: Optional[Union[float, Literal["auto"]]] = None,
348347
349348def name () -> str :
350349 """
351- Returns the name of the simulator.
350+ :returns: The name of the simulator.
352351 """
353352 return SpynnakerDataView .get_sim_name ()
354353
@@ -437,8 +436,8 @@ def end(_: Any = True) -> None:
437436
438437def list_standard_models () -> List [str ]:
439438 """
440- Return a list of all the StandardCellType classes available for this
441- simulator.
439+ :returns: A list of all the StandardCellType classes available for this
440+ simulator.
442441 """
443442 return [
444443 key
@@ -547,6 +546,7 @@ def create(
547546 :param cellclass: population class
548547 :param cellparams: population parameters.
549548 :param n: number of neurons
549+ :returns: A new Population
550550 """
551551 SpynnakerDataView .check_user_can_act ()
552552 return __pynn ["create" ](cellclass , cellparams , n )
@@ -591,6 +591,7 @@ def get_max_delay() -> int:
591591 Most likely value is timestep * 144
592592
593593 :raises NotImplementedError: As there is no system wide max_delay
594+ :returns: In SpyNNaker this method never returns
594595 """
595596 raise NotImplementedError (
596597 "sPyNNaker does not have a system wide max_delay" )
0 commit comments