Skip to content

Commit

Permalink
fix: line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
AthenaCaesura committed Mar 29, 2024
1 parent a4823f5 commit 7e279a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/benchq/visualization_tools/plot_graph_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def plot_graph_state(asg, pauli_tracker):
lambda x: x[1]["shape"] == aShape, graph.nodes(data=True)
)
]
colors_for_nodes_with_this_shape: List[mpatches.Patch] = [
colors = [
color_map[i] for i in nodes_with_this_shape if 0 <= i < len(color_map)
]

Expand All @@ -144,7 +144,7 @@ def plot_graph_state(asg, pauli_tracker):
nodePos,
node_shape=aShape,
nodelist=nodes_with_this_shape,
node_color=colors_for_nodes_with_this_shape, # pyright: ignore[reportArgumentType]
node_color=colors, # pyright: ignore[reportArgumentType]
node_size=120,
)
nx.draw_networkx_labels(graph, nodePos)
Expand Down

0 comments on commit 7e279a7

Please sign in to comment.