Skip to content

Commit

Permalink
typo, type checker
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonliew committed Mar 8, 2024
1 parent d4916a3 commit 73223f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hammer/utils/lef_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ def get_min_from_line(line):
if "WIDTHTABLE" in line:
# definition on one line
if "LEF58_WIDTHTABLE" in line:
metal["power_strap_width_table"] = list(filter(lambda s: is_float(s), line.split()))
metal["power_strap_width_table"] = list(filter(lambda s: is_float(s), line.split())) # type: ignore
# multiple tables, only want routing direction one
if not any(s in line for x in ["ORTHOGONAL", "WRONGDIRECTION"]):
metal["power_strap_width_table"] = list(filter(lambda s: is_float(s), line.split()))
if not any(s in line for s in ["ORTHOGONAL", "WRONGDIRECTION"]):
metal["power_strap_width_table"] = list(filter(lambda s: is_float(s), line.split())) # type: ignore

if line.startswith("END"):
# TODO: grid_unit is not currently parsed as part of the Metal data structure!
Expand Down

0 comments on commit 73223f8

Please sign in to comment.