Skip to content

Commit

Permalink
FIX: do_pingroup
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorompi committed Apr 23, 2024
1 parent 85f7233 commit a0c172a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/pyedb/dotnet/edb_core/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,17 +1016,10 @@ def create_port_on_component(
else:
self._logger.info("No pins found on component {} for the net {}".format(component, net))
else:
ref_pin_group = self.create_pingroup_from_pins(ref_pins)
if not ref_pin_group:
self._logger.warning("failed to create reference pin group")
return False
ref_pin_group_term = self._create_pin_group_terminal(ref_pin_group, isref=True)
for net in net_list:
pins = [pin for pin in cmp_pins if pin.GetNet().GetName() == net]
for pin in pins:
pin_group = self.create_pingroup_from_pins([pin])
pin_group_term = self._create_pin_group_terminal(pin_group, isref=False)
pin_group_term.SetReferenceTerminal(ref_pin_group_term)
self.create_port_on_pins(component, pin, ref_pins)
return True

@pyedb_function_handler()
Expand Down Expand Up @@ -2295,7 +2288,7 @@ def get_pin_from_component(self, component, netName=None, pinName=None):
Filter on the net name as an alternative to
``pinName``. The default is ``None``.
pinName : str, optional
Filter on the pin name an an alternative to
Filter on the pin name an alternative to
``netName``. The default is ``None``.
Returns
Expand Down

0 comments on commit a0c172a

Please sign in to comment.