Skip to content

Commit f29c96f

Browse files
authored
Merge branch 'master' into no_java_skip
2 parents a030f30 + 17bb2c3 commit f29c96f

7 files changed

Lines changed: 7 additions & 88 deletions

File tree

spinn_front_end_common/interface/abstract_spinnaker_base.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@
9999
reload_dsg_regions, energy_provenance_reporter,
100100
load_application_data_specs, load_system_data_specs,
101101
graph_binary_gatherer, graph_data_specification_writer,
102-
graph_provenance_gatherer, hbp_allocator,
103-
insert_chip_power_monitors_to_graphs,
102+
hbp_allocator, insert_chip_power_monitors_to_graphs,
104103
insert_extra_monitor_vertices_to_graphs, split_lpg_vertices,
105104
load_app_images, load_fixed_routes, load_sys_images,
106105
locate_executable_start_type,
@@ -1751,15 +1750,11 @@ def _execute_dsg_region_reloader(self) -> None:
17511750
return
17521751
reload_dsg_regions()
17531752

1754-
def _execute_graph_provenance_gatherer(self) -> None:
1753+
def _execute_graph_provenance(self) -> None:
17551754
"""
1756-
Runs, times and log the GraphProvenanceGatherer if requested.
1755+
Runs, times and log and graph provenance if needed
17571756
"""
1758-
with FecTimer("Graph provenance gatherer", TimerWork.OTHER) as timer:
1759-
if timer.skip_if_cfg_false("Reports",
1760-
"read_graph_provenance_data"):
1761-
return
1762-
graph_provenance_gatherer()
1757+
# Will be overridden by sPyNNaker
17631758

17641759
def _execute_placements_provenance_gatherer(self) -> None:
17651760
"""
@@ -1818,7 +1813,7 @@ def _do_read_provenance(self) -> None:
18181813
"""
18191814
Runs, times and log the methods that gather provenance.
18201815
"""
1821-
self._execute_graph_provenance_gatherer()
1816+
self._execute_graph_provenance()
18221817
self._execute_placements_provenance_gatherer()
18231818
self._execute_profile_data_gatherer()
18241819

spinn_front_end_common/interface/interface_functions/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from .graph_binary_gatherer import graph_binary_gatherer
2929
from .graph_data_specification_writer import (
3030
graph_data_specification_writer)
31-
from .graph_provenance_gatherer import graph_provenance_gatherer
3231
from .hbp_allocator import hbp_allocator
3332
from .load_data_specification import (
3433
load_application_data_specs, load_system_data_specs,
@@ -64,7 +63,6 @@
6463
"load_system_data_specs", "load_using_advanced_monitors",
6564
"FindApplicationChipsUsed",
6665
"graph_binary_gatherer", "graph_data_specification_writer",
67-
"graph_provenance_gatherer",
6866
"hbp_allocator",
6967
"insert_chip_power_monitors_to_graphs",
7068
"insert_extra_monitor_vertices_to_graphs",

spinn_front_end_common/interface/interface_functions/graph_provenance_gatherer.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

spinn_front_end_common/interface/provenance/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from .abstract_provides_local_provenance_data import (
16-
AbstractProvidesLocalProvenanceData)
1715
from .abstract_provides_provenance_data_from_machine import (
1816
AbstractProvidesProvenanceDataFromMachine)
1917
from .fec_timer import FecTimer
@@ -26,8 +24,7 @@
2624
from .timer_category import TimerCategory
2725
from .timer_work import TimerWork
2826

29-
__all__ = ("AbstractProvidesLocalProvenanceData", "FecTimer",
30-
"GlobalProvenance",
27+
__all__ = ("FecTimer", "GlobalProvenance",
3128
"AbstractProvidesProvenanceDataFromMachine", "LogStoreDB",
3229
"ProvenanceReader", "ProvenanceWriter",
3330
"ProvidesProvenanceDataFromMachineImpl",

spinn_front_end_common/interface/provenance/abstract_provides_local_provenance_data.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

spinn_front_end_common/interface/spinnaker.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ path_network_specification_report = network_specification.rpt
7171
# provenance goes into the database
7272
read_router_provenance_data = Debug
7373
@read_router_provenance_data = Reads router provenance and writes it into the [database](path_data_database)
74-
read_graph_provenance_data = Debug
75-
@read_graph_provenance_data = Reads graph provenance and writes it into the [database](path_data_database)
7674
read_placements_provenance_data = Debug
7775
@read_placements_provenance_data = Reads placements provenance and writes it into the [database](path_data_database)
7876
read_profile_data = Debug

spinn_front_end_common/utilities/database/database_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def add_application_vertices(self) -> None:
136136
for vertex in FecDataView.iterate_vertices():
137137
vertex_id = self.__insert(
138138
"INSERT INTO Application_vertices(vertex_label) VALUES(?)",
139-
vertex.label)
139+
str(vertex.label))
140140
self.__vertex_to_id[vertex] = vertex_id
141141
for m_vertex in vertex.machine_vertices:
142142
m_vertex_id = self.__add_machine_vertex(m_vertex)

0 commit comments

Comments
 (0)