Skip to content

Commit

Permalink
MISC: Auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
For more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 18, 2024
1 parent 5810a8a commit 75235e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pyedb/common/nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,15 @@ def create_poly(prim, polys, lines):
# poly = LineString(line).buffer(prim.width / 2)
# else:
xt, yt = prim.points()
if len(xt)<3:
if len(xt) < 3:
return
p1 = [(i, j) for i, j in zip(xt[::-1], yt[::-1])]
p1 = mirror_poly(p1)

holes = []
for void in prim.voids:
xvt, yvt = void.points(arc_segments=3)
if len(xvt)<3:
if len(xvt) < 3:
continue
h1 = mirror_poly([(i, j) for i, j in zip(xvt, yvt)])
holes.append(h1)
Expand Down
4 changes: 3 additions & 1 deletion tests/legacy/system/test_edb_padstacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ def test_padstaks_plot_on_matplotlib(self):
plot_components_on_bottom=True,
)
assert os.path.exists(local_png2)
edb_plot.modeler.create_polygon([[-10e-3, -10e-3], [110e-3, -10e-3], [110e-3, 70e-3], [-10e-3, 70e-3]],layer_name="Outline")
edb_plot.modeler.create_polygon(
[[-10e-3, -10e-3], [110e-3, -10e-3], [110e-3, 70e-3], [-10e-3, 70e-3]], layer_name="Outline"
)
local_png3 = os.path.join(self.local_scratch.path, "test3.png")
edb_plot.nets.plot(
nets=["DDR4_DQ57", "DDR4_DQ56"],
Expand Down

0 comments on commit 75235e3

Please sign in to comment.