Skip to content

Commit

Permalink
remove extra_monitor_vertices list use dict.values() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Feb 15, 2022
1 parent e6669b2 commit e363105
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def check_data(data):
def _get_monitor_placement(monitor_vertices, placement):
""" Get the receiver placement on the same chip as a given placement
"""
for vertex in monitor_vertices:
for vertex in monitor_vertices.values():
vtx_plt = sim.placements().get_placement_of_vertex(vertex)
if vtx_plt.x == placement.x and vtx_plt.y == placement.y:
return vtx_plt
Expand Down Expand Up @@ -115,10 +115,9 @@ def check_extra_monitor(self):
writer_placement = sim.placements().get_placement_of_vertex(
writer_vertex)

print("here")
# pylint: disable=protected-access
monitor_vertices = sim.globals_variables.get_simulator().\
_extra_monitor_vertices
_extra_monitor_to_chip_mapping

receiver_plt = _get_monitor_placement(
monitor_vertices, writer_placement)
Expand Down

0 comments on commit e363105

Please sign in to comment.