Skip to content

XRT generalization#317

Draft
MTakahashi-KWH wants to merge 25 commits into
mainfrom
XRT_generalization
Draft

XRT generalization#317
MTakahashi-KWH wants to merge 25 commits into
mainfrom
XRT_generalization

Conversation

@MTakahashi-KWH

Copy link
Copy Markdown
Collaborator

Generalizing xrt backend to work with any arbitrary beamline setup through xml (json may well also be integrated easily).

  • Pass an xml file to the XRTBackend initialization
  • run infer_motors and infer_detectors on the backend to collect dicts of inferred elements
    • you can make your own det/motor versions using the backend.elements data member also.
    • You can also alias the inferred device how you want
  • set your primary detector element
  • the devices act like any runengine detector or motor with the movable and readable interfaces
  • run like any other blop dof or det

Stable, with caching and greedy invalidation. Barebones demo notebook exists in markdown in tutorials. Most functionality outside of backend function is demoed.

this may be of interest to:
@jessica-moylan
@thopkins32

please let me know of any QOL or improvements preferred for this before i open a full pull request

@checkmarx-gh-ast-us-povs

checkmarx-gh-ast-us-povs Bot commented Jun 3, 2026

Copy link
Copy Markdown

Logo
Checkmarx One – Scan Summary & Details06bdd133-5a08-4a67-9fea-dc635b21e6af

Great job! No new security vulnerabilities introduced in this pull request


Communicate with Checkmarx by submitting a PR comment with @Checkmarx followed by one of the supported commands. Learn about the supported commands here.

@MTakahashi-KWH

Copy link
Copy Markdown
Collaborator Author

lol, i think the doc build fails cause i just dumped the xml in the doc directory to build the tutorial in ipynb ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant