Skip to content

Commit

Permalink
return None even in Version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Apr 26, 2024
1 parent ffead2a commit d577a03
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions spinn_machine/data/machine_data_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,7 @@ def get_physical_core_id(cls, xy: XY, virtual_p: int) -> Optional[int]:
:rtype: int or None if core not in map
"""
if cls.__data._v_to_p_map is None:
version = cls.get_machine_version()
# delayed import to avoid circular reference
# pylint: disable=import-outside-toplevel
from spinn_machine.version.version_spin1 import VersionSpin1
if isinstance(version, VersionSpin1):
return None
else:
# TODO Spin2
raise SpinnMachineException(
f"This call is not supported when using Version {version}")
return None
if xy in cls.__data._v_to_p_map:
v_to_p_map = cls.__data._v_to_p_map[xy]
else:
Expand Down

0 comments on commit d577a03

Please sign in to comment.