Skip to content

Commit

Permalink
fix: don't look up things that do not exist in the merged metrics tab…
Browse files Browse the repository at this point in the history
…le (#228)
  • Loading branch information
frederik-encord authored Mar 6, 2023
1 parent 4c1b73b commit 66ece7b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ def multiselect_tag(row: Series, key_prefix: str, metric_type: MetricScope):
metric_scopes = METRIC_SCOPE_TAG_SCOPES[metric_type]

tag_status = []
merged_metrics = get_state().merged_metrics
for scope in metric_scopes:
id = target_identifier(identifier, scope)
tag_status += get_state().merged_metrics.at[id, "tags"]
if id in merged_metrics:
tag_status += get_state().merged_metrics.at[id, "tags"]

key = f"{key_prefix}_multiselect_{identifier}"

Expand Down

0 comments on commit 66ece7b

Please sign in to comment.