An open API service indexing awesome lists of open source software.

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

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
```