Skip to content

Commit

Permalink
remove if
Browse files Browse the repository at this point in the history
  • Loading branch information
mike0sv committed Jan 28, 2025
1 parent c6a2cea commit 0b5e599
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/evidently/ui/dashboards/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,6 @@ async def build(
timestamp_start: Optional[datetime.datetime],
timestamp_end: Optional[datetime.datetime],
) -> BaseWidgetInfo:
if self.value.metric_args.get("metric.type", "").startswith("evidently:metric_v2"):
return await DashboardPanelHistogram(
id=self.id,
title=self.title,
filter=self.filter,
size=self.size,
value=self.value,
barmode=self.barmode,
).build(data_storage, project_id, timestamp_start, timestamp_end)

bins_for_hists_data: DataPointsAsType[
Union[HistogramData, Distribution, dict]
] = await data_storage.load_points_as_type(
Expand Down

0 comments on commit 0b5e599

Please sign in to comment.