Skip to content

Commit 53c16f1

Browse files
committed
refactor: remove antialiasing from plot_profiling function and update properties structure in tests
1 parent b45877d commit 53c16f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/agentlab/analyze/agent_xray.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,6 @@ def plot_profiling(ax, step_info_list: list[StepInfo], summary_info: dict, progr
12461246
horizontalalignment="left",
12471247
rotation=0,
12481248
clip_on=True,
1249-
antialiased=True,
12501249
fontweight=1000,
12511250
backgroundcolor=colors[12],
12521251
)

tests/analyze/test_overlay_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ def manual_eval():
5858
click("submit_btn")"""
5959

6060
# Mock properties mapping bids to bounding boxes
61-
properties = {"search_box": (200, 100, 350, 130), "submit_btn": (200, 200, 280, 230)}
61+
properties = {
62+
"search_box": {"bbox": (50, 50, 100, 50)},
63+
"submit_btn": {"bbox": (150, 100, 120, 30)},
64+
}
6265

6366
# Annotate the image and get colored HTML
6467
html_result = overlay_utils.annotate_action(img, action_string, properties, colormap="tab10")

0 commit comments

Comments
 (0)