Skip to content

Commit

Permalink
Fix HFSS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Apr 10, 2024
1 parent 0907661 commit 98c589a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyaedt/hfss.py
Original file line number Diff line number Diff line change
Expand Up @@ -5171,7 +5171,7 @@ def set_differential_pair(
Name of the terminal to use as the positive terminal.
reference : str
Name of the terminal to use as the negative terminal.
common_name : str, optional
common_mode : str, optional
Name for the common mode. The default is ``None``, in which case a unique name is assigned.
differential_mode : str, optional
Name for the differential mode. The default is ``None``, in which case a unique name is assigned.
Expand Down Expand Up @@ -5200,8 +5200,10 @@ def set_differential_pair(
props = OrderedDict()
props["PosBoundary"] = assignment
props["NegBoundary"] = reference
if not common_name:
if not common_mode:
common_name = generate_unique_name("Comm")
else:
common_name = common_mode
props["CommonName"] = common_name
props["CommonRefZ"] = str(common_reference) + "ohm"
if not differential_mode:
Expand Down

0 comments on commit 98c589a

Please sign in to comment.