cap-auto now contains only the CrysAlisPro automation tooling.
The native .rodhypix reader was split into a standalone package:
- Old import:
from cap_auto.rod_image_reader import ... - New import:
from rodhypix import ...
This package provides:
CAPInstancefor CAP listen mode control- CAP command execution, batching, and macro helpers
- Log capture and error/warning parsing
- Native Windows directory monitoring via
pywin32 - Optional socket server support for remote control
pip install cap-autocap-auto is Windows-focused and expects a local CrysAlisPro installation.
from cap_auto.cap_control import CAPInstance
with CAPInstance() as cap:
result = cap.execute("dc proffit")
print(result.success)
print(result.execution_time)cap = CAPInstance(start_now=True)
result = cap.execute("dc proffit")
cap.stop()cap = CAPInstance(start_now=True)
results = cap.execute_batch([
"gt o 0",
"gt k 90",
"gt p 0",
])
macro_result = cap.execute_macro([
"dc proffit",
"dc rrp",
"xx saveub",
])
cap.stop()cap = CAPInstance(start_now=True)
results = cap.execute_on_multiple_experiments(
commands=["dc proffit", "dc rrp"],
par_files=["exp1.par", "exp2.par", "exp3.par"],
use_macro=True,
)
cap.stop()The root examples/ directory now contains only CAP automation material.
examples/02_cap_automation.ipynbexamples.pycap_server_gui.pycap_client_gui.py
The reader notebook and benchmark moved into the standalone rodhypix tree in this workspace.
cap_auto/cap_control.py: CAP automation APIexamples/02_cap_automation.ipynb: CAP notebookQUICKREF.md: compact API cheatsheet
The extracted reader package lives under rodhypix in this workspace and is intended to become its own repository and distribution.