Skip to content

Commit

Permalink
fix the explanation switch
Browse files Browse the repository at this point in the history
  • Loading branch information
yilinxia committed Feb 12, 2025
1 parent 26136f8 commit 8d97f62
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/callbacks/visualization_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,18 @@ def create_visualization(
selected_arguments_changed = False
# Determine whether Tab "Explanation" is active
elif active_item == "Explanation":
dot_source = generate_dot_string(
arg_framework,
selected_arguments,
True,
dot_layout,
dot_rank,
special_handling,
layout_freeze,
)
if selected_arguments == {}:
dot_source = current_dot_source
else:
dot_source = generate_dot_string(
arg_framework,
selected_arguments,
True,
dot_layout,
dot_rank,
special_handling,
layout_freeze,
)
# Determine whether Tab "Solution" is active
else:
if triggered_id == "abstract-evaluation-accordion":
Expand Down

0 comments on commit 8d97f62

Please sign in to comment.