https://github.com/slaclab/virtual-accelerator
Implements virtual accelerators for SLAC facilities using LUME
https://github.com/slaclab/virtual-accelerator
Last synced: 2 months ago
JSON representation
Implements virtual accelerators for SLAC facilities using LUME
- Host: GitHub
- URL: https://github.com/slaclab/virtual-accelerator
- Owner: slaclab
- Created: 2026-02-20T20:25:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-04-03T20:48:28.000Z (2 months ago)
- Last Synced: 2026-04-04T08:55:04.629Z (2 months ago)
- Language: Jupyter Notebook
- Size: 2.73 MB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository includes SLAC-specific python code to be utilized with creating and running virtual accelerators of SLAC beamlines via the LUME framework (see https://github.com/slaclab/lume-base, https://github.com/lume-science).
## Installation
Clone this repo into a local location, enter it and run
```
pip install .
```
the `-e` flag can be added if editing the files.
See `pyproject.toml` for dependencies. If you want to use the virtual-accelerator package without all of the codes,
you can install code-dependent packages (Bmad, cheetah, etc.) yourself and install virtual-accelerator without all
dependencies via the flag `-no-deps`.
Creating the model instances requires the `$LCLS_LATTICE` environment variable to be set to a location containing the
contents of the lcls-lattice repo https://github.com/slaclab/lcls-lattice.
#### Note
The Cu Injector model is present in .submodules/repo.
To pull latest changes from the Cu Inj repo
```
git subtree pull --prefix=.submodules/repo https://github.com/slaclab/lcls_cu_injector_ml_model main --squash
```