Skip to content

Commit

Permalink
typo and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-stokes committed May 2, 2018
1 parent 7bb09fe commit 1e7637f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spinnman/model/version_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def version_number(self):
""" The version number of the software
:return: The version
:rtype: float
:rtype: tuple(int, int, int)
"""
return self._version_number

Expand Down
13 changes: 10 additions & 3 deletions spinnman/transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ def create_transceiver_from_hostname(
return Transceiver(
version, connections=connections, ignore_chips=ignore_chips,
ignore_cores=ignore_cores, max_core_id=max_core_id,
scamp_connections=scamp_connections, max_sdram_size=max_sdram_size)
ignore_links=ignored_links, scamp_connections=scamp_connections,
max_sdram_size=max_sdram_size)


class Transceiver(object):
Expand Down Expand Up @@ -493,7 +494,12 @@ def _check_connection(
""" Check that the given connection to the given chip works
:param connection_selector: the connection selector to use
:param chip_x: the chip x coordinate to try to talk to
:type chip_x: int
:param chip_y: the chip y coordinate to try to talk to
:type chip_y: int
:param retries: how many attempts to do before giving up
:type retries: int
:return: True if a valid response is received, False otherwise
"""
for _ in xrange(retries):
Expand Down Expand Up @@ -769,7 +775,8 @@ def _search_for_proxies(self, chip):
linked to a given chip
:param chip: the chip to locate
:rtype: None
:return: connection or None
:rtype: None or SCAMPConnection
"""
for connection in self._scamp_connections:
if connection.chip_x == chip.x and connection.chip_y == chip.y:
Expand Down Expand Up @@ -2799,7 +2806,7 @@ def register_udp_listener(self, callback, connection_class,
# is not on all interfaces, this is an error
if "0.0.0.0" not in receiving_connections:
raise SpinnmanInvalidParameterException(
"local_port", local_port,
"local_port", str(local_port),
"Another connection is already listening on this"
" port")

Expand Down

0 comments on commit 1e7637f

Please sign in to comment.