From d050b8faa57f8ca16397a99cd1939a99638130b0 Mon Sep 17 00:00:00 2001 From: tuanna Date: Mon, 20 Jan 2025 15:00:30 +0700 Subject: [PATCH] Revert "Update JsonTimeSeriesData to filter out None values for xrange" This reverts commit 2180c5947532db1f6e81c36c3f63a78136f7c141. --- studio/app/common/core/utils/file_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/app/common/core/utils/file_reader.py b/studio/app/common/core/utils/file_reader.py index b6f661b8c..2b12fb459 100644 --- a/studio/app/common/core/utils/file_reader.py +++ b/studio/app/common/core/utils/file_reader.py @@ -44,7 +44,7 @@ def read_as_output(cls, filepath) -> OutputData: def read_as_timeseries(cls, filepath) -> JsonTimeSeriesData: json_data = cls.read(filepath) return JsonTimeSeriesData( - xrange=list([k for k, v in json_data["data"].items() if v is not None]), + xrange=list(json_data["data"].keys()), data=json_data["data"], std=json_data["std"] if "std" in json_data else None, )