Agent skill
aqwa-batch-execution-python-subprocess-pattern
Sub-skill of aqwa-batch-execution: Python Subprocess Pattern.
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/engineering/marine-offshore/aqwa/batch-execution/python-subprocess-pattern
SKILL.md
Python Subprocess Pattern
Python Subprocess Pattern
import subprocess
from pathlib import Path
AQWA_EXE = Path("/ansys_inc/v251/aqwa/bin/lnx64/Aqwa")
def run_aqwa(work_dir: Path, job_name: str, job_type: str = "std") -> bool:
"""Run AQWA batch. Returns True on success."""
result = subprocess.run(
[str(AQWA_EXE), job_type, job_name],
cwd=str(work_dir), capture_output=True, text=True,
)
mes = (work_dir / f"{job_name}.mes")
if mes.exists() and any(
kw in mes.read_text(errors="replace").upper()
for kw in ("ERROR", "FATAL", "ABORT")
):
return False
return (work_dir / f"{job_name}.res").exists()
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?