diff --git a/spinnman/transceiver/version5transceiver.py b/spinnman/transceiver/version5transceiver.py index 78f95ef67..e1fc82455 100644 --- a/spinnman/transceiver/version5transceiver.py +++ b/spinnman/transceiver/version5transceiver.py @@ -33,4 +33,3 @@ def __init__(self, connections=None): @overrides(BaseTransceiver.boot_led_0_value) def boot_led_0_value(self): return 0x00000001 - diff --git a/spinnman/transceiver/virtual5Transceiver.py b/spinnman/transceiver/virtual5Transceiver.py index aebca383b..4d21168f2 100644 --- a/spinnman/transceiver/virtual5Transceiver.py +++ b/spinnman/transceiver/virtual5Transceiver.py @@ -43,7 +43,7 @@ def read_memory(self, x, y, base_address, length, cpu=0): try: return super().read_memory(x, y, base_address, length, cpu) except SpinnmanIOException: - if (x==y==255 and base_address==4110450434): + if (x == y == 255 and base_address == 4110450434): return bytearray(b'\x08\x08') raise NotImplementedError( f"Unexpected {x=} {y=} {base_address=}, {length=} {cpu=}") @@ -54,7 +54,8 @@ def _get_scamp_version( chip_y=AbstractSCPRequest.DEFAULT_DEST_Y_COORD, connection_selector=None, n_retries=N_RETRIES): try: - return super()._get_scamp_version(chip_x, chip_y, connection_selector, n_retries) + return super()._get_scamp_version( + chip_x, chip_y, connection_selector, n_retries) except SpinnmanIOException: version = VersionInfo( b'@\x00\x07\x08\xff\x00\x00\x00\x00\x00\x80\x00\x02\x00\x00\n' @@ -74,4 +75,4 @@ def get_cpu_infos(self, core_subsets=None, states=None, include=True): try: return super().get_cpu_infos(core_subsets, states, include) except SpinnmanIOException: - return None \ No newline at end of file + return None