From e235658ba29e5bc1687ccca1fb76e9bf16924b86 Mon Sep 17 00:00:00 2001 From: Kelly Boothby Date: Mon, 29 Nov 2021 07:56:53 -0800 Subject: [PATCH] deleted final reference to zephyr nice coordinates --- dwave_networkx/drawing/zephyr_layout.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dwave_networkx/drawing/zephyr_layout.py b/dwave_networkx/drawing/zephyr_layout.py index e595ac00..093a7e28 100644 --- a/dwave_networkx/drawing/zephyr_layout.py +++ b/dwave_networkx/drawing/zephyr_layout.py @@ -78,10 +78,7 @@ def zephyr_layout(G, scale=1., center=None, dim=2): m = G.graph.get('rows') t = G.graph.get('tile') coord = zephyr_coordinates(m, t) - if G.graph.get('labels') == 'nice': - pos = {v: xy_coords(*coord.nice_to_zephyr(v)) for v in G.nodes()} - else: - pos = {v: xy_coords(*coord.linear_to_zephyr(v)) for v in G.nodes()} + pos = {v: xy_coords(*coord.linear_to_zephyr(v)) for v in G.nodes()} return pos @@ -276,13 +273,11 @@ def draw_zephyr_yield(G, **kwargs): m = G.graph['columns'] t = G.graph['tile'] coordinates = G.graph["labels"] == "coordinate" - nice = G.graph["labels"] == "nice" - # Can't interpret fabric_only from graph attributes except: raise ValueError("Target zephyr graph needs to have columns, rows, \ tile, and label attributes to be able to identify faulty qubits.") - perfect_graph = zephyr_graph(m, t, coordinates=coordinates, nice_coordinates=nice) + perfect_graph = zephyr_graph(m, t, coordinates=coordinates) draw_yield(G, zephyr_layout(perfect_graph), perfect_graph, **kwargs)