Skip to content

Commit a943f2b

Browse files
authored
Merge pull request #1638 from SpiNNakerManchester/check_executable_path
check_executable_path without logging use
2 parents 5324fe5 + a814bae commit a943f2b

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

spynnaker/pyNN/models/neuron/population_vertex.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -513,12 +513,8 @@ def combined_binary_exists(self) -> bool:
513513
# so easier to assume they exist
514514
if get_config_bool("Machine", "virtual_board"):
515515
return True
516-
try:
517-
SpynnakerDataView().get_executable_path(
518-
self.combined_binary_file_name)
519-
return True
520-
except KeyError:
521-
return False
516+
return SpynnakerDataView().check_executable_path(
517+
self.combined_binary_file_name)
522518

523519
@property
524520
def split_binaries_exist(self) -> bool:
@@ -529,14 +525,11 @@ def split_binaries_exist(self) -> bool:
529525
# so easier to assume they exist
530526
if get_config_bool("Machine", "virtual_board"):
531527
return True
532-
try:
533-
SpynnakerDataView().get_executable_path(
534-
self.neuron_core_binary_file_name)
535-
SpynnakerDataView().get_executable_path(
536-
self.synapse_core_binary_file_name)
537-
return True
538-
except KeyError:
528+
if not SpynnakerDataView().check_executable_path(
529+
self.neuron_core_binary_file_name):
539530
return False
531+
return SpynnakerDataView().check_executable_path(
532+
self.synapse_core_binary_file_name)
540533

541534
@property
542535
def use_combined_core(self) -> bool:

0 commit comments

Comments
 (0)