Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions doc/changelog.d/4179.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Feat: Add wrinqr access to mapdl_inprocess class
7 changes: 5 additions & 2 deletions src/ansys/mapdl/core/mapdl_inprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
class _Backend(Protocol):
def run_command(self, command: str, verbose: bool, mute: bool) -> str: ...

def wrinqr(self, key: int) -> int: ...

def input_file(
self,
filename: str,
Expand Down Expand Up @@ -55,12 +57,13 @@ def __init__(self, in_process_backend: _Backend):
def _run(self, command: str, verbose: bool = False, mute: bool = False) -> str:
if not command.strip():
raise ValueError("Empty commands not allowed")

if len(command) > 639:
raise ValueError("Maximum command length mut be less than 640 characters")

return self._in_process_backend.run_command(command, verbose, mute).strip()

def wrinqr(self, key: int) -> int:
return self._in_process_backend.wrinqr(key)

def input(
self,
fname: str = "",
Expand Down
Loading