Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

padstack name #3814

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions pyaedt/edb_core/edb_data/padstacks_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,13 +1455,8 @@ def rotation(self):

@property
def name(self):
"""Padstack Instance Name. If it is a pin, the syntax will be like in AEDT ComponentName-PinName."""
if self.is_pin:
comp_name = self._edb_padstackinstance.GetComponent().GetName()
pin_name = self._edb_padstackinstance.GetName()
return "-".join([comp_name, pin_name])
else:
return self._edb_padstackinstance.GetName()
"""Padstack Instance Name."""
hui-zhou-a marked this conversation as resolved.
Show resolved Hide resolved
return self._edb_padstackinstance.GetName()

@name.setter
def name(self, value):
Expand Down Expand Up @@ -1504,6 +1499,7 @@ def metal_volume(self):
@property
def pin_number(self):
"""Get pin number."""
warnings.warn("`pin_number` is deprecated. Use `name` property instead.", DeprecationWarning)
svandenb-dev marked this conversation as resolved.
Show resolved Hide resolved
return self._edb_padstackinstance.GetName()

@property
Expand Down