Skip to content

Commit

Permalink
update creating a yaml file from a sort of yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Kareem Farid <[email protected]>
  • Loading branch information
kareefardi committed Nov 18, 2024
1 parent 69e8548 commit 3612485
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openlane/steps/openroad.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import re
import json
import textwrap
import tempfile
import functools
import subprocess
Expand Down Expand Up @@ -1128,9 +1129,9 @@ def get_psm_error_count(rpt: io.TextIOWrapper) -> int:
vio_type = line[len(VIO_TYPE_PFX) :].strip()
sio.write(f"- type: {vio_type}\n")
elif "bbox = " in line:
sio.write(line.replace("bbox = ", "- bbox ="))
sio.write(f" {textwrap.dedent(line.replace('bbox = ', '- bbox ='))}")
else:
sio.write(line)
sio.write(f" {textwrap.dedent(line)}")

sio.seek(0)
violations = yaml.load(sio, Loader=yaml.SafeLoader) or []
Expand Down

0 comments on commit 3612485

Please sign in to comment.