Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import requests

from spinn_utilities.config_holder import get_config_int, get_config_str
from spinn_utilities.config_holder import get_config_str
from spinn_utilities.overrides import overrides
from spinn_utilities.typing.json import JsonArray, JsonObject

Expand Down Expand Up @@ -130,18 +130,14 @@ def hbp_allocator(total_run_time: Optional[float]) -> Tuple[
:param total_run_time: The total run time to request
:return: IP address, BMP details (if any), allocation controller
:raises ~pacman.exceptions.PacmanConfigurationException:
If neither `n_chips` or `n_boards` provided or if version is incorrect
If neither `n_chips` or `n_boards` provided
"""

url = get_config_str("Machine", "remote_spinnaker_url")
if url.endswith("/"):
url = url[:-1]

machine = _get_machine(url, total_run_time)
if cast(int, machine["version"]) != get_config_int("Machine", "version"):
raise PacmanConfigurationException(
f"Version returned by HBP {machine['version']} == "
f'version in cfg {get_config_int("Machine", "version")}')
name = cast(str, machine["machineName"])
hbp_job_controller = _HBPJobController(url, name)
Comment thread
rowleya marked this conversation as resolved.

Expand Down
Loading