Skip to content

AdrienPlacais/LightWin

Repository files navigation

LightWin

LightWin is a tool to automatically find compensation settings for cavity failures in linacs.

Installation

The full installation instructions are detailed here. The steps are straightforward and can be summarized as follows:

  1. Clone the repository: git clone git@github.com:AdrienPlacais/LightWin.git
  2. Navigate to the LightWin and install it with all dependencies: pip install -e .
  3. Test that everything is working with pytest -m "not tracewin"

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

Documentation is available here.

How to run

See here.

Example

See the data/example folder.

Future updates

BeamCalculator

  • Beam calculator developed by JM Lagniel for SPIRAL2.
  • Envelope solvers with space-charge.

Quality of life

  • 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).

Optimization

  • Correlation matrices.
  • Add SNS compensation method