Skip to content

Commit

Permalink
extending line support
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev committed Jan 13, 2025
1 parent c408ce2 commit a1343bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyedb/dotnet/edb_core/padstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,9 @@ def merge_via(self, contour_boxes, net_filter=None, start_layer=None, stop_layer
instances = self.get_padstack_instances_id_intersecting_polygon(
points=contour_box, padstack_instances_index=instances_index
)
if instances:
if not instances:
raise Exception(f"No padstack instances found inside {contour_box}")
else:
if net_filter:
instances = [
self.instances[id] for id in instances if not self.instances[id].net_name in net_filter
Expand Down Expand Up @@ -1691,8 +1693,6 @@ def merge_via(self, contour_boxes, net_filter=None, start_layer=None, stop_layer
merged_instance = self.place(position=[0, 0], definition_name=new_padstack_def, net_name=net)
merged_via_ids.append(merged_instance.id)
[self.instances[id].delete() for id in instances]
else:
self._pedb.logger.error(f"No padstack instances found inside {contour_box}")
return merged_via_ids

def merge_via_along_lines(
Expand Down

0 comments on commit a1343bb

Please sign in to comment.