Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is config none #259

Merged
merged 3 commits into from
Sep 11, 2023
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
8 changes: 5 additions & 3 deletions spinnaker_graph_front_end/spinnaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

import logging
from spinn_utilities.config_holder import get_config_str
from spinn_utilities.config_holder import is_config_none
from spinn_utilities.log import FormatAdapter
from spinn_front_end_common.data import FecDataView
from spinn_front_end_common.interface.abstract_spinnaker_base import (
Expand All @@ -26,8 +26,10 @@


def _is_allocated_machine():
return (get_config_str("Machine", "spalloc_server") or
get_config_str("Machine", "remote_spinnaker_url"))
if is_config_none("Machine", "spalloc_server"):
return not is_config_none("Machine", "remote_spinnaker_url")
else:
return True


class SpiNNaker(AbstractSpinnakerBase):
Expand Down