Skip to content

Commit

Permalink
fixes (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike0sv authored May 3, 2024
1 parent 49bc597 commit 974c645
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/evidently/ui/dashboards/test_suites.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def _create_aggregate_fig(self, points: Dict[datetime.datetime, Dict[Test, TestS
layout={"showlegend": True},
)
fig.update_layout(barmode="stack")
fig.update_yaxes(showticklabels=False)
return fig

def _create_detailed_fig(self, points: Dict[datetime.datetime, Dict[Test, TestStatus]]):
Expand All @@ -116,7 +115,11 @@ def _create_detailed_fig(self, points: Dict[datetime.datetime, Dict[Test, TestSt

def get_description(test, date):
t = date_to_test[date].get(test)
return t.get_result().description if t is not None else ""
try:
return t.get_result().description if t is not None else ""
except ValueError:
# if context is not set we don't have access to result
return ""

fig = go.Figure(
data=[
Expand Down

0 comments on commit 974c645

Please sign in to comment.