diff --git a/ax/analysis/healthcheck/can_generate_candidates.py b/ax/analysis/healthcheck/can_generate_candidates.py index 126cc4d9db6..da2ee2bcd6b 100644 --- a/ax/analysis/healthcheck/can_generate_candidates.py +++ b/ax/analysis/healthcheck/can_generate_candidates.py @@ -22,7 +22,7 @@ class CanGenerateCandidatesAnalysis(HealthcheckAnalysis): REASON_PREFIX: str = "This experiment cannot generate candidates.\nREASON: " - LAST_RUN_TEMPLATE: str = "\nLAST TRIAL RUN: {days} day(s) ago" + LAST_RUN_TEMPLATE: str = "\n\nLAST TRIAL RUN: {days} day(s) ago" def __init__( self, can_generate_candidates: bool, reason: str, days_till_fail: int diff --git a/ax/analysis/healthcheck/tests/test_can_generate_candidates.py b/ax/analysis/healthcheck/tests/test_can_generate_candidates.py index b597b5d8601..8d3d3217de4 100644 --- a/ax/analysis/healthcheck/tests/test_can_generate_candidates.py +++ b/ax/analysis/healthcheck/tests/test_can_generate_candidates.py @@ -62,7 +62,7 @@ def test_warns_if_a_trial_was_recently_run(self) -> None: card.subtitle, ( f"{CanGenerateCandidatesAnalysis.REASON_PREFIX}" - "The data is borked.\n" + "The data is borked.\n\n" "LAST TRIAL RUN: 1 day(s) ago" ), ) @@ -128,7 +128,7 @@ def test_is_fail_if_no_trial_was_recently_run(self) -> None: card.subtitle, ( f"{CanGenerateCandidatesAnalysis.REASON_PREFIX}" - "The data is old.\n" + "The data is old.\n\n" "LAST TRIAL RUN: 3 day(s) ago" ), )