Skip to content

Commit

Permalink
Fix cname typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Apr 20, 2024
1 parent 71ae629 commit 092a670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyaedt/modeler/circuits/PrimitivesNexxim.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,12 +681,12 @@ def create_inductor(self, name=None, value=50, location=None, angle=0, use_insta
return cmpid

@pyaedt_function_handler(compname="name")
def create_capacitor(self, cname=None, value=50, location=None, angle=0, use_instance_id_netlist=False):
def create_capacitor(self, name=None, value=50, location=None, angle=0, use_instance_id_netlist=False):
"""Create a capacitor.
Parameters
----------
cname : str, optional
name : str, optional
Name of the capacitor. The default is ``None``.
value : float, optional
Capacitor value. The default is ``50``.
Expand All @@ -713,7 +713,7 @@ def create_capacitor(self, cname=None, value=50, location=None, angle=0, use_ins
location = []

cmpid = self.create_component(
cname,
name,
component_library="Capacitors",
component_name="CAP_",
location=location,
Expand Down

0 comments on commit 092a670

Please sign in to comment.