Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Aug 14, 2023
1 parent 2526e54 commit a86bd77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion spinnman/transceiver/version5transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ def __init__(self, connections=None):
@overrides(BaseTransceiver.boot_led_0_value)
def boot_led_0_value(self):
return 0x00000001

7 changes: 4 additions & 3 deletions spinnman/transceiver/virtual5Transceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=}")
Expand All @@ -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'
Expand All @@ -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
return None

0 comments on commit a86bd77

Please sign in to comment.