Skip to content

Commit

Permalink
inquire return something when no = in response (#2522)
Browse files Browse the repository at this point in the history
* Moving parres and inquire

* Moving lgwrite

* Moving VWRITE

* Moving *USE

* Moving NRM

* Moving /COM

* Moving LSSOLVE

* fixing typo

* Disabling Google heading.
Adding `mapdl` (lowercase) to accepts.
Fixing other warnings.

* fixing vale version to avoid pipeline unexpected breakdowns.

* Undoing changes from main

* Empty comment to trigger CICD

* Empty commit to re-trigger CICD

* Fixing tests

* fixing indentation

* Fixing com command

* Fixing typo
  • Loading branch information
germa89 authored Nov 23, 2023
1 parent 9cc780c commit 1074bec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ansys/mapdl/core/mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5120,8 +5120,10 @@ def inquire(self, strarray="", func="", arg1="", arg2=""):
"TITLE",
]: # the output is multiline, we just need the last line.
response = response.splitlines()[-1]
if "=" in response:
return response.split("=")[1].strip()

return response.split("=")[1].strip()
return response.strip()

@wraps(Commands.parres)
def parres(self, lab="", fname="", ext="", **kwargs):
Expand Down

0 comments on commit 1074bec

Please sign in to comment.