-
Notifications
You must be signed in to change notification settings - Fork 123
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
Bug located in mapdl.get command #2430
Comments
Thanks @fanzongyue1991 for identify this issue! |
Hi @pvargasm & @fanzongyue1991 There is a slight typo in the get command: there is no get command in PyMAPDL....! The command would be get_value. This does work: value=mapdl.get_value(entity="CREE", entnum="1", item1="TEMP", it1num=0, item2="CONST", it2num=3, item3=tbopt) And it returns: Mike |
Hi @pvargasm @fanzongyue1991 @germa89 mapdl.get(par="creepc3", entity="CREE", entnum=1, item1="TEMP", it1num=0, item2="CONST", it2num=3, tbopt=tbopt) Mike |
🤓 Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
in your activated virtual environment.🔍 Description of the bug
IndexError is triggered when
mapdl.get
is executed for entities (material in this case) that requires definition ofitem3
argument.Check mapdl.py.
L2792 Assumes that when item3 is enabled,
value
has more than one line. So, a previous verification ofvalue
number of lines will avoid this issue.🕵️ Steps To Reproduce
💻 Which Operating System are you using?
Windows
🐍 Which Python version are you using?
3.10
📝 PyMAPDL Report
Show the Report!
📝 Installed packages
Show the installed packages!
📝 Logger output file
Show the logger output file.
The text was updated successfully, but these errors were encountered: