Skip to main content

Py versions PyPi Pytest Documentation status pre-commit.ci status License: MIT Code style: black Imports: isort

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. Create a dedicated Python environment.
  2. Run pip install lightwin

If you want to edit the source code:

  1. Clone the repository: git clone git@github.com:AdrienPlacais/LightWin.git
  1. Create a dedicated Python environment.
  2. From LightWin folder: pip install -e .[test]
  3. Test that everything is working with pytest -m "not tracewin and not implementation".

Documentation

Documentation is now automatically built and hosted on Read the docs.

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

Metadata

Release files for LightWin 0.11.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LightWin 0.11.3
File Size Uploaded Provenance Actions
lightwin-0.11.3.tar.gz 4.0 MB With provenance Details for lightwin-0.11.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for LightWin 0.11.3
File Actions
lightwin-0.11.3-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for lightwin-0.11.3-cp313-cp313-win_amd64.whl
lightwin-0.11.3-cp313-cp313-musllinux_1_2_x86_64.whl CPython 3.13 CPython 3.13 Linux musl 1.2+ x86-64 Details for lightwin-0.11.3-cp313-cp313-musllinux_1_2_x86_64.whl
lightwin-0.11.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for lightwin-0.11.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
lightwin-0.11.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details for lightwin-0.11.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
lightwin-0.11.3-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for lightwin-0.11.3-cp313-cp313-macosx_11_0_arm64.whl
lightwin-0.11.3-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details for lightwin-0.11.3-cp313-cp313-macosx_10_13_x86_64.whl
lightwin-0.11.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for lightwin-0.11.3-cp312-cp312-win_amd64.whl
lightwin-0.11.3-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details for lightwin-0.11.3-cp312-cp312-musllinux_1_2_x86_64.whl
lightwin-0.11.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for lightwin-0.11.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
lightwin-0.11.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for lightwin-0.11.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
lightwin-0.11.3-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for lightwin-0.11.3-cp312-cp312-macosx_11_0_arm64.whl
lightwin-0.11.3-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details for lightwin-0.11.3-cp312-cp312-macosx_10_13_x86_64.whl

Total release size: 16.1 MB

Release files / lightwin-0.11.3.tar.gz

Download URL lightwin-0.11.3.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
36b9536c3ba9e0ddbf5614d652fd756037682b61de88d846b4a83a142661352d
BLAKE2b-256 checksum
How to use checksums
1140885c5a59ce54e9b843bbf6df2a97f6818b20ca61cefecc272cf669f66de8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp313-cp313-win_amd64.whl

Download URL lightwin-0.11.3-cp313-cp313-win_amd64.whl
Size 724.1 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
d6e2c7a57627d28245c6bb90f54d694a72304bf5a8dc6885a232ca7e832eae20
BLAKE2b-256 checksum
How to use checksums
f71612afea7918491079ef4788e549834fd5d669ba90a921d14d0fe76d5e9073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL lightwin-0.11.3-cp313-cp313-musllinux_1_2_x86_64.whl
Size 1.3 MB
Tags CPython 3.13 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
9f2916d4554f30e36f89eee5b61f80b2854a12b352d14239c68df3d90c442829
BLAKE2b-256 checksum
How to use checksums
cb209b03d83f722705ec4161c3cec661d8dad2250c29bd7f7c8376a5e21bccc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lightwin-0.11.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6e0cb5b712bcbb628805a15d06360f5085016c33ceb5770ec07f56d2ac941372
BLAKE2b-256 checksum
How to use checksums
f8c12e062d43afeb3012726f2a9cdf87524c7e8dcb877260a02619e9b667dbab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL lightwin-0.11.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.3 MB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
336950c9dbd9fd6eaac8f15bfc297f7c10b2e59ffd4c4be6a56a1c2dd5aa6b1e
BLAKE2b-256 checksum
How to use checksums
7bc7dce582ce3fa5a0311cc9a793f8a5f269b09f51add0524d2fafbdcf74e0fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL lightwin-0.11.3-cp313-cp313-macosx_11_0_arm64.whl
Size 728.4 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4ce0c5ca4f5969963ead565b9bdda8e2fe791066a1c644a830e97c2b7b5bab1d
BLAKE2b-256 checksum
How to use checksums
3f212a2145a6ac24f9f8122ecece5974c5b532b0a97d14ceb4c338193d1bc6ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp313-cp313-macosx_10_13_x86_64.whl

Download URL lightwin-0.11.3-cp313-cp313-macosx_10_13_x86_64.whl
Size 736.8 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
83baf816311e8723912bf311cf790e2f0cce15f32c73b14416436e74234fa06f
BLAKE2b-256 checksum
How to use checksums
150b761c9f2b6ba3ebdfc294e19cc03378aeeef118d9579d63f6842dbfb3e3f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp312-cp312-win_amd64.whl

Download URL lightwin-0.11.3-cp312-cp312-win_amd64.whl
Size 724.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
84d9e9f73778144e697583efe9b85802343c0bf49bd0719557d2430bf2d38047
BLAKE2b-256 checksum
How to use checksums
03b845a80707c61aa879a8739bf310a45a944aea5b131c53af9ef1faf60b9fe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL lightwin-0.11.3-cp312-cp312-musllinux_1_2_x86_64.whl
Size 1.3 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
f0eb9436c42ed81ffc7dd5b3a689627912aac07eebbeca53ba252c1962a24011
BLAKE2b-256 checksum
How to use checksums
d8d042dd10c0cd20ba0c3d934a3b62a2cbfd1f0df86a8b53730aa648acfda2b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lightwin-0.11.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e9fe1da819db8dd46a7ffbb318aa792c9f1134247d848c2a692462ec8521a47c
BLAKE2b-256 checksum
How to use checksums
a59f0ef801cc66d94b0a23110cacf39df8807f80b3cc440ddd219613e3885791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL lightwin-0.11.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.3 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b0fc5acb37352830cd628398e23cdaa40a1a35a43f565453d56c402890332089
BLAKE2b-256 checksum
How to use checksums
061b79f945ef21d533e24fbb158fc81bbf058247ad094519120daf7b8c1387c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL lightwin-0.11.3-cp312-cp312-macosx_11_0_arm64.whl
Size 729.2 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ba104f0f6a5da56b9eeb8da6be62009a7706835a38d6e1f6d1c4ade7e29b0f59
BLAKE2b-256 checksum
How to use checksums
9a5c2a990729b7811318ef42c7534a3e24c2770fbc960d7b0cb36be1c07afd6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Release files / lightwin-0.11.3-cp312-cp312-macosx_10_13_x86_64.whl

Download URL lightwin-0.11.3-cp312-cp312-macosx_10_13_x86_64.whl
Size 738.0 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
5dcdb71215d8bcab16ac9c0a66ac5b4540dcb7d3d85ae1d725b8bb6a42047d3e
BLAKE2b-256 checksum
How to use checksums
cd70ac72d5291cc202be63580d5bbe3196937c6b317f56df03cd9af481401fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

Security for LightWin 0.11.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for lightwin-0.11.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 20, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11.3 This release

13 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page