Skip to content

Commit

Permalink
skip 0 tickness lines
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcapodi78 committed Nov 18, 2024
1 parent 47f6e39 commit 3a81075
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/pyedb/common/nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ def create_poly(prim, polys, lines):
continue
label = "Net " + net
label_colors[label] = list(CSS4_COLORS.keys())[color_index]
edge_colors[label] = [i * 0.5 for i in label_colors[label]]
try:
edge_colors[label] = [i * 0.5 for i in label_colors[label]]
except TypeError:
edge_colors[label] =label_colors[label]
color_index += 1
if color_index >= len(CSS4_COLORS):
color_index = 0
Expand Down Expand Up @@ -382,8 +385,10 @@ def create_poly(prim, polys, lines):
if color_index >= len(CSS4_COLORS):
color_index = 0
label_colors[label] = c
edge_colors[label] = [i*0.5 for i in c]

try:
edge_colors[label] = [i*0.5 for i in c]
except TypeError:
edge_colors[label] =label_colors[label]
for prim in prims:
create_poly(prim, polys, lines)
if polys:
Expand Down

0 comments on commit 3a81075

Please sign in to comment.