Skip to content

Commit

Permalink
Merge pull request #18 from SpiNNakerManchester/pacman_buffered_in_out
Browse files Browse the repository at this point in the history
Tested and fixed issues
  • Loading branch information
rowleya committed Mar 30, 2015
2 parents 191b11c + 634afd2 commit d34bb66
Show file tree
Hide file tree
Showing 37 changed files with 786 additions and 646 deletions.
2 changes: 1 addition & 1 deletion pacman/model/abstract_classes/abstract_constrained_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
class AbstractConstrainedEdge(AbstractConstrainedObject):

def __init__(self, label, constraints=None):
AbstractConstrainedObject.__init__(self, label, constraints)
AbstractConstrainedObject.__init__(self, label, constraints)
10 changes: 4 additions & 6 deletions pacman/model/abstract_classes/abstract_constrained_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ def add_constraint(self, constraint):
:param constraint: constraint to add
:type constraint:\
:py:class:`pacman.model.constraints.abstract_constraint\
.AbstractConstraint`
:py:class:`pacman.model.constraints.abstract_constraint.AbstractConstraint`
:return: None
:rtype: None
:raise pacman.exceptions.PacmanInvalidParameterException: If the\
constraint is not valid
"""
if (constraint is None
or not isinstance(constraint, AbstractConstraint)):
if (constraint is None or
not isinstance(constraint, AbstractConstraint)):
raise PacmanInvalidParameterException(
"constraint", constraint, "Must be a pacman.model."
"constraints.abstract_constraint."
Expand All @@ -41,8 +40,7 @@ def add_constraints(self, constraints):
:param constraints: iterable of constraints to add
:type constraints: iterable of\
:py:class:`pacman.model.constraints.abstract_constraint\
.AbstractConstraint`
:py:class:`pacman.model.constraints.abstract_constraint.AbstractConstraint`
:return: None
:rtype: None
:raise pacman.exceptions.PacmanInvalidParameterException: If one of \
Expand Down
121 changes: 0 additions & 121 deletions pacman/model/abstract_constrained_vertex.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, vertex):
:param vertex: The vertex to which the constraint refers
:type vertex: \
:py:class:`pacman.model.graph.vertex.AbstractConstrainedVertex`
:py:class:`pacman.model.partitionable_graph.abstract_partitionable_vertex.AbstractPartitionableVertex`
:raise None: does not raise any known exceptions
"""
AbstractPartitionerConstraint.__init__(
Expand All @@ -29,7 +29,8 @@ def vertex(self):
""" The vertex to partition with
:return: the vertex
:rtype: :py:class:`pacman.model.graph.vertex.AbstractConstrainedVertex`
:rtype:\
:py:class:`pacman.model.partitionable_graph.abstract_partitionable_vertex.AbstractPartitionableVertex`
:raise None: does not raise any known exceptions
"""
return self._vertex

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit d34bb66

Please sign in to comment.