Skip to content

Commit

Permalink
typing assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Apr 9, 2024
1 parent d83ebc8 commit b9b6c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinn_machine/virtual_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ def __init__(
version = MachineDataView.get_machine_version()
if n_cores:
width, height = version.size_from_n_cores(n_cores)
version.verify_size(width, height)
assert width is not None
assert height is not None
version.verify_size(width, height)
max_cores = version.max_cores_per_chip
self._n_router_entries = version.n_router_entries
self._machine = version.create_machine(
Expand Down

0 comments on commit b9b6c77

Please sign in to comment.