Skip to content

Commit 0b3d1b7

Browse files
authored
Merge branch 'master' into list_map
2 parents dc696fa + 8665dd8 commit 0b3d1b7

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

spinn_front_end_common/interface/abstract_spinnaker_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,6 @@ def get_machine(self) -> Machine:
722722
self._data_writer.set_user_accessed_machine()
723723
if self._data_writer.is_user_mode() and \
724724
self._data_writer.is_soft_reset():
725-
self._data_writer.clear_machine()
726725
# Make the reset hard
727726
logger.warning(
728727
"Calling Get machine after a reset force a hard reset and "

spinn_front_end_common/utilities/report_functions/reports.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,10 @@ def _sdram_usage_report_per_chip_with_timesteps(
448448
sdram_by_chip[key] += vertex_sdram
449449
for chip in progress.over(FecDataView.get_machine().chips, end_progress):
450450
try:
451-
if chip in sdram_by_chip:
452-
chip_sdram = sdram_by_chip[chip]
451+
# convert to key as mypy was confused.
452+
key = (chip.x, chip.y)
453+
if key in sdram_by_chip:
454+
chip_sdram = sdram_by_chip[key]
453455
used_sdram = chip_sdram.get_total_sdram(timesteps)
454456
f.write(
455457
f"**** Chip: ({chip.x}, {chip.y}) has total memory usage "

spinn_front_end_common/utilities/sqlite_db.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@
2121
import struct
2222
from types import TracebackType
2323
from typing import Literal, Optional, Type, Union
24-
2524
from typing_extensions import Self
2625

26+
from spinn_utilities.log import FormatAdapter
27+
2728
from pacman.exceptions import PacmanValueError
2829

2930
from spinn_front_end_common.utilities.utility_calls import check_file_exists
3031
from spinn_front_end_common.utilities.exceptions import DatabaseException
3132

32-
logger = logging.getLogger(__name__)
33+
logger = FormatAdapter(logging.getLogger(__name__))
3334

3435

3536
class SQLiteDB(object):

0 commit comments

Comments
 (0)