Skip to content

Commit

Permalink
small dashboarding fix for running running and backend separately
Browse files Browse the repository at this point in the history
  • Loading branch information
stewit committed Dec 17, 2024
1 parent 2876d64 commit d6367ce
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions runtime/hetdesrun/backend/service/dashboarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
)
from markupsafe import Markup

from hdutils import parse_value
from hetdesrun.backend.models.info import ExecutionResponseFrontendDto
from hetdesrun.backend.service.dashboarding_utils import (
dashboard_id_for_io,
Expand Down Expand Up @@ -1356,17 +1357,17 @@ def generate_dashboard_html(
}

dataframe_outputs = {
(
dashboard_id_for_io(name, GridstackPositioningType.OUTPUT)
): exec_resp.output_results_by_output_name[name]
(dashboard_id_for_io(name, GridstackPositioningType.OUTPUT)): parse_value(
exec_resp.output_results_by_output_name[name], "DATAFRAME", nullable=False
) # actually parse as dataframe, this is a dict-like object when received from runtime
for name in exec_resp.output_results_by_output_name
if exec_resp.output_types_by_output_name[name] == "DATAFRAME"
}

multitsframe_outputs = {
(
dashboard_id_for_io(name, GridstackPositioningType.OUTPUT)
): exec_resp.output_results_by_output_name[name]
(dashboard_id_for_io(name, GridstackPositioningType.OUTPUT)): parse_value(
exec_resp.output_results_by_output_name[name], "MULTITSFRAME", nullable=False
) # actually parse as dataframe, this is a dict-like object when received from runtime
for name in exec_resp.output_results_by_output_name
if exec_resp.output_types_by_output_name[name] == "MULTITSFRAME"
}
Expand Down

0 comments on commit d6367ce

Please sign in to comment.