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

Fixing non existing argument #2152

Merged
merged 2 commits into from
Jun 29, 2023
Merged
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
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