Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-stokes committed Jun 15, 2015
2 parents 5f2235b + fd0dd55 commit 8278b5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pacman/operations/placer_algorithms/radial_placer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def _place_vertex(self, vertex, resource_tracker, machine, placements):
# Check for the radial placement constraint
radial_constraints = utility_calls.locate_constraints_of_type(
[vertex], PlacerRadialPlacementFromChipConstraint)
start_x = 0
start_y = 0
start_x = None
start_y = None
for constraint in radial_constraints:
if start_x is None:
start_x = constraint.x
Expand All @@ -97,4 +97,4 @@ def _place_vertex(self, vertex, resource_tracker, machine, placements):
(x, y, p, _, _) = resource_tracker.allocate_constrained_resources(
vertex.resources_required, vertex.constraints, chips)
placement = Placement(vertex, x, y, p)
placements.add_placement(placement)
placements.add_placement(placement)

0 comments on commit 8278b5a

Please sign in to comment.