From 98ab1f312bc5fdabaa2290025c3e1bb21caa6592 Mon Sep 17 00:00:00 2001 From: DimaAmega Date: Tue, 17 Dec 2024 20:06:55 +0400 Subject: [PATCH] fix lint again --- src/evidently/ui/dashboards/test_suites.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/evidently/ui/dashboards/test_suites.py b/src/evidently/ui/dashboards/test_suites.py index ec307b88e3..e49d39b4ef 100644 --- a/src/evidently/ui/dashboards/test_suites.py +++ b/src/evidently/ui/dashboards/test_suites.py @@ -161,10 +161,12 @@ def get_customdata(test: Test, date): def get_z_value(test, date) -> float: ti = points[date].get(test) + default = TEST_2_Z[TestStatus.SKIPPED] + if ti is None: - return TEST_2_Z[TestStatus.SKIPPED] + return default - return TEST_2_Z.get(ti.status) + return TEST_2_Z.get(ti.status) or default fig = go.Figure( data=[