Skip to content

Commit

Permalink
fix codeql suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
simon1hofmann committed Nov 30, 2023
1 parent de751d3 commit 3350cd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mnt/bench/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,17 @@ def prettify_table(table: pd.DataFrame) -> pd.DataFrame:
clocking_scheme_mapping = {"2ddwave": "2DDWave", "use": "USE", "res": "RES", "esr": "ESR", "row": "ROW"}
table.replace({"clocking_scheme": clocking_scheme_mapping}, inplace=True)

physical_design_algorithm_mapping = {"nanoplacer": "NanoPlaceR"}
table.replace({"physical_design_algorithm": physical_design_algorithm_mapping}, inplace=True)

opt_mapping = {"opt": "✓", "unopt": "✗"}
table.replace({"optimized": opt_mapping}, inplace=True)

ord_mapping = {"ord": "✓", "unord": "✗"}
table.replace({"ordered": ord_mapping}, inplace=True)

table["size_compressed"] = table["size_compressed"].apply(lambda x: humanize.naturalsize(x))
table["size_uncompressed"] = table["size_uncompressed"].apply(lambda x: humanize.naturalsize(x))
table["size_compressed"] = table["size_compressed"].apply(humanize.naturalsize)
table["size_uncompressed"] = table["size_uncompressed"].apply(humanize.naturalsize)

column_mapping = {
"benchmark": "Benchmark Function",
Expand Down

0 comments on commit 3350cd0

Please sign in to comment.