LightWin is a tool to automatically find compensation settings for cavity failures in linacs.
The full installation instructions are detailed here. The steps are straightforward and can be summarized as follows:
- Clone the repository:
git clone git@github.com:AdrienPlacais/LightWin.git
- Navigate to the
LightWin
directory, and switch to the last released version:git checkout v0.7.0
. - Install LightWin with all its dependencies:
pip install -e .
- Test that everything is working with
pytest -m "not tracewin and not implementation"
Note that the TraceWin module will not work out of the box. You will need to tell LightWin were to find your TraceWin executables. See dedicated instructions.
Documentation is available here. To build the documentation from scratch:
- Build the source files
make -C docs/ apidoc
- Build the CSV files used for documenting configuration
make -C docs/ generate_csv
- Build the documentation
make -C docs/ multiversion
Note that for quick tests, you can also build the unversioned documentation withmake -C docs/ html
See here.
See the data/example
folder.
- Beam calculator developed by JM Lagniel for SPIRAL2.
- Envelope solvers with space-charge.
-
Plotter
object. - Friendlier
Evaluator
. - Support for
SET_SYNC_PHASE
(see note). - Better handling of TraceWin errors (currently: a single error and whole run is lost).
- Correlation matrices.
- Add SNS compensation method