Skip to content

Commit

Permalink
Fixing bug with show_layout=None in SearchVisualizer (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasLF authored Jan 5, 2024
1 parent 87d4502 commit 73f1915
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mqt/qmap/visualization/visualize_search_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2040,7 +2040,8 @@ def update_layer(new_layer: int) -> None:
)

current_node_layout_visualized = None
visualize_search_node_layout(None, [0], None)
if not hide_layout:
visualize_search_node_layout(None, [0], None)
cl = current_layer
current_layer = None # to prevent triggering redraw in update_timestep
timestep_play.max = len(search_graph.nodes)
Expand Down

0 comments on commit 73f1915

Please sign in to comment.