Skip to content

Commit

Permalink
Do not redefine built-in. (#4417)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxJPRey authored Mar 29, 2024
1 parent 0e64862 commit 992a642
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions pyaedt/application/Analysis3DLayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,15 @@ def get_next_xtalk_list(self, trlist=[], tx_prefix=""):
>>> oModule.GetAllPorts
"""
next = []
next_xtalks = []
if not trlist:
trlist = [i for i in self.excitations if tx_prefix in i]
for i in trlist:
k = trlist.index(i) + 1
while k < len(trlist):
next.append("S({},{})".format(i, trlist[k]))
next_xtalks.append("S({},{})".format(i, trlist[k]))
k += 1
return next
return next_xtalks

@pyaedt_function_handler()
def get_fext_xtalk_list(self, trlist=None, reclist=None, tx_prefix="", rx_prefix="", skip_same_index_couples=True):
Expand Down
6 changes: 3 additions & 3 deletions pyaedt/application/AnalysisNexxim.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,15 +483,15 @@ def get_next_xtalk_list(self, trlist=[], tx_prefix=""):
>>> oEditor.GetAllPorts
"""
next = []
next_xtalks = []
if not trlist:
trlist = [i for i in list(self.excitations.keys()) if tx_prefix in i]
for i in trlist:
k = trlist.index(i) + 1
while k < len(trlist):
next.append("S({},{})".format(i, trlist[k]))
next_xtalks.append("S({},{})".format(i, trlist[k]))
k += 1
return next
return next_xtalks

@pyaedt_function_handler()
def get_fext_xtalk_list(self, trlist=None, reclist=None, tx_prefix="", rx_prefix="", skip_same_index_couples=True):
Expand Down
24 changes: 12 additions & 12 deletions pyaedt/application/Variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,26 +784,26 @@ def __init__(self, app):

@property
def _independent_variables(self):
all = {}
all.update(self._independent_project_variables)
all.update(self._independent_design_variables)
return all
all_independent = {}
all_independent.update(self._independent_project_variables)
all_independent.update(self._independent_design_variables)
return all_independent

@property
def _dependent_variables(self):
all = {}
all_dependent = {}
for k, v in self._dependent_project_variables.items():
all[k] = v
all_dependent[k] = v
for k, v in self._dependent_design_variables.items():
all[k] = v
return all
all_dependent[k] = v
return all_dependent

@property
def _all_variables(self):
all = {}
all.update(self._independent_variables)
all.update(self._dependent_variables)
return all
all_variables = {}
all_variables.update(self._independent_variables)
all_variables.update(self._dependent_variables)
return all_variables

@pyaedt_function_handler()
def __delitem__(self, key):
Expand Down

0 comments on commit 992a642

Please sign in to comment.