From 2520d0081863c9a58bb95c7f5002ffcb32b58411 Mon Sep 17 00:00:00 2001 From: Sait Cakmak Date: Mon, 9 Mar 2026 11:51:24 -0700 Subject: [PATCH] Replace em-dash with ASCII in UtilityProgressionPlot subtitle Summary: The UtilityProgressionPlot subtitle for MOO experiments contained a literal em-dash (U+2014), which cannot be encoded in latin-1. When GAIN's daemon scheduler finalizes a multi-objective experiment and saves the analysis card to MySQL, MySQLdb encodes strings using latin-1 and raises UnicodeEncodeError, causing the experiment to be marked as FAILED despite all trials succeeding. Replace the em-dash with " -- " to stay within the latin-1 character set. Reviewed By: bernardbeckerman Differential Revision: D95828166 --- ax/analysis/plotly/utility_progression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ax/analysis/plotly/utility_progression.py b/ax/analysis/plotly/utility_progression.py index 67826f763bd..d1317a617fc 100644 --- a/ax/analysis/plotly/utility_progression.py +++ b/ax/analysis/plotly/utility_progression.py @@ -151,7 +151,7 @@ def compute( subtitle = ( "Shows the hypervolume of the Pareto frontier achieved so far across " f"completed trials. {_TRACE_INDEX_EXPLANATION} The y-axis shows " - "cumulative best hypervolume—only improvements, so flat " + "cumulative best hypervolume -- only improvements, so flat " "segments indicate trials that didn't improve the frontier. " "Hypervolume measures the volume of objective space dominated by the " f"Pareto frontier. "