diff --git a/runtime/hetdesrun/backend/service/dashboarding.py b/runtime/hetdesrun/backend/service/dashboarding.py index 94ea9fe1..ef245c29 100644 --- a/runtime/hetdesrun/backend/service/dashboarding.py +++ b/runtime/hetdesrun/backend/service/dashboarding.py @@ -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, @@ -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" }