Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Clean up time_plots.py #520

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/time_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@
unit_columns = columns[3:]

prepared_data = pd.DataFrame(columns=columns)
for test in (test for test in raw_data.keys() if "-" in test):
formatted_entry = [[pt[0]] + [test] + pt[1:] for pt in raw_data[test]]
for test in raw_data.keys():
if "-" not in test:
continue
formatted_entry = [[pt[0], test, *pt[1:]] for pt in raw_data[test]]
prepared_data = pd.concat(
[prepared_data, pd.DataFrame(formatted_entry, columns=columns)]
)
Expand Down