Skip to content

Commit

Permalink
Revert "Update JsonTimeSeriesData to filter out None values for xrange"
Browse files Browse the repository at this point in the history
This reverts commit 2180c59.
  • Loading branch information
tuanna26 committed Jan 20, 2025
1 parent 4940813 commit d050b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion studio/app/common/core/utils/file_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit d050b8f

Please sign in to comment.