Skip to content

Commit

Permalink
Merge pull request #479 from SpiNNakerManchester/spif_output
Browse files Browse the repository at this point in the history
Spif output
  • Loading branch information
andrewgait committed Nov 15, 2022
2 parents 2cac744 + 707fbae commit a27bc29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pacman/model/graphs/application/application_edge_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from spinn_utilities.overrides import overrides
from pacman.model.graphs import AbstractSingleSourcePartition
from .application_edge import ApplicationEdge

Expand All @@ -33,3 +34,8 @@ def __init__(self, identifier, pre_vertex):
super().__init__(
pre_vertex=pre_vertex, identifier=identifier,
allowed_edge_types=ApplicationEdge)

@overrides(AbstractSingleSourcePartition.add_edge)
def add_edge(self, edge):
super().add_edge(edge)
edge.post_vertex.add_incoming_edge(edge, self)
6 changes: 6 additions & 0 deletions pacman/model/graphs/application/application_vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,9 @@ def get_fixed_key_and_mask(self, partition_id):
"""
# pylint: disable=unused-argument
return None

def add_incoming_edge(self, edge, partition):
""" Add an edge incoming to this vertex. This is ignored by default,
but could be used to track incoming edges, and/or report faults.
"""
pass

0 comments on commit a27bc29

Please sign in to comment.