Skip to content

Commit 5cfb852

Browse files
valallansyspyansys-ci-botpre-commit-ci[bot]germa89
authored
feat: Add wrinqr access to mapdl_inprocess class (#4179)
* feat: Add wrinqr access to mapdl_inprocess class * chore: adding changelog file 4179.miscellaneous.md [dependabot-skip] * ci: auto fixes from pre-commit.com hooks. for more information, see https://pre-commit.ci --------- Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: German <[email protected]>
1 parent b29c8ed commit 5cfb852

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Feat: Add wrinqr access to mapdl_inprocess class

src/ansys/mapdl/core/mapdl_inprocess.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
class _Backend(Protocol):
2929
def run_command(self, command: str, verbose: bool, mute: bool) -> str: ...
3030

31+
def wrinqr(self, key: int) -> int: ...
32+
3133
def input_file(
3234
self,
3335
filename: str,
@@ -55,12 +57,13 @@ def __init__(self, in_process_backend: _Backend):
5557
def _run(self, command: str, verbose: bool = False, mute: bool = False) -> str:
5658
if not command.strip():
5759
raise ValueError("Empty commands not allowed")
58-
5960
if len(command) > 639:
6061
raise ValueError("Maximum command length mut be less than 640 characters")
61-
6262
return self._in_process_backend.run_command(command, verbose, mute).strip()
6363

64+
def wrinqr(self, key: int) -> int:
65+
return self._in_process_backend.wrinqr(key)
66+
6467
def input(
6568
self,
6669
fname: str = "",

0 commit comments

Comments
 (0)