Skip to content

Commit

Permalink
Fixing non existing argument (#2152)
Browse files Browse the repository at this point in the history
Fixing unexisting argument
  • Loading branch information
germa89 authored Jun 29, 2023
1 parent 4e5e387 commit 41f472d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ansys/mapdl/core/_commands/database/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def cm(self, cname="", entity="", **kwargs):
>>> mapdl.asel('S', 'LOC', 'Y', loc)
>>> mapdl.cm('PRES_A', 'AREA')
"""
command = f"CM,{str(cname)}, {str(entity)}"
command = f"CM,{cname}, {entity}"
return self.run(command, **kwargs)

def cmdele(self, name="", **kwargs):
Expand All @@ -98,7 +98,7 @@ def cmdele(self, name="", **kwargs):
This command is valid in any processor.
"""
command = f"CMDELE, {str(name)}"
command = f"CMDELE, {name}"
return self.run(command, **kwargs)

def cmedit(
Expand Down Expand Up @@ -139,7 +139,7 @@ def cmedit(
-----
This command is valid in any processor.
"""
command = f"CMEDIT,{str(aname)},{str(oper)},{str(cnam1)},{str(cnam2)},{str(cnam3)},{str(cnam4)},{str(cnam5)},{str(cnam6)},{str(cnam7)}" # noqa : E501
command = f"CMEDIT,{aname},{oper},{cnam1},{cnam2},{cnam3},{cnam4},{cnam5},{cnam6},{cnam7}" # noqa : E501
return self.run(command, **kwargs)

def cmgrp(
Expand Down Expand Up @@ -192,7 +192,7 @@ def cmgrp(
This command is valid in any processor.
"""
command = f"CMEDIT,{str(aname)},{str(oper)},{str(cnam1)},{str(cnam2)},{str(cnam3)},{str(cnam4)},{str(cnam5)},{str(cnam6)},{str(cnam7)},{str(cnam8)}" # noqa : E501
command = f"CMGRP,{aname},{cnam1},{cnam2},{cnam3},{cnam4},{cnam5},{cnam6},{cnam7},{cnam8}" # noqa : E501
return self.run(command, **kwargs)

def cmlist(self, name="", key="", entity="", **kwargs):
Expand Down Expand Up @@ -237,7 +237,7 @@ def cmlist(self, name="", key="", entity="", **kwargs):
Examples of possible usage:
"""
command = f"CMLIST,{str(name)},{str(key)},{str(entity)}"
command = f"CMLIST,{name},{key},{entity}"
return self.run(command, **kwargs)

def cmmod(self, cname="", keyword="", value="", **kwargs):
Expand Down Expand Up @@ -269,7 +269,7 @@ def cmmod(self, cname="", keyword="", value="", **kwargs):
This command is valid in any processor.
"""
command = f"CMMOD,{str(cname)},{str(keyword)},{str(value)}"
command = f"CMMOD,{cname},{keyword},{value}"
return self.run(command, **kwargs)

def cmplot(self, label="", entity="", keyword="", **kwargs):
Expand Down Expand Up @@ -332,7 +332,7 @@ def cmplot(self, label="", entity="", keyword="", **kwargs):
This command is valid in any processor.
"""
command = f"CMPLOT,{str(label)},{str(entity)},{str(keyword)}"
command = f"CMPLOT,{label},{entity},{keyword}"
return self.run(command, **kwargs)

def cmsel(self, type_="", name="", entity="", **kwargs):
Expand Down Expand Up @@ -397,7 +397,7 @@ def cmsel(self, type_="", name="", entity="", **kwargs):
This command is valid in any processor.
"""
command = f"CMSEL,{str(type_)},{str(name)},{str(entity)}"
command = f"CMSEL,{type_},{name},{entity}"
return self.run(command, **kwargs)

def cmwrite(
Expand Down

0 comments on commit 41f472d

Please sign in to comment.