Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
Christian-B committed Jun 20, 2024
1 parent 8299a44 commit 7b5014f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spinn_machine/version/version_factory.py
Original file line number Diff line number Diff line change
@@ -45,9 +45,10 @@ def version_factory() -> AbstractVersion:
url_version = _get_url_version()
size_version = _get_size_version()

version: Optional[AbstractVersion] = None
if cfg_version is None:
if url_version is None:
version: Optional[AbstractVersion] = None
version = None
else:
version = _number_to_version(url_version)
else:
@@ -178,6 +179,14 @@ def _number_to_version(version: int):


def raise_version_error(error: str, version: Optional[int]):
"""
Collects main cfg values and raises an exception
:param str error: message for the exception
:param version: version claimed
:type version: int or None
:raises SpinnMachineException: Always!
"""
height = get_config_int_or_none("Machine", "height")
width = get_config_int_or_none("Machine", "width")

0 comments on commit 7b5014f

Please sign in to comment.