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.0

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.0
File Size Uploaded Provenance Actions
lightwin-0.11.0.tar.gz 4.0 MB With provenance Details for lightwin-0.11.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for LightWin 0.11.0
File Actions
lightwin-0.11.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for lightwin-0.11.0-cp313-cp313-win_amd64.whl
lightwin-0.11.0-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.0-cp313-cp313-musllinux_1_2_x86_64.whl
lightwin-0.11.0-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.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
lightwin-0.11.0-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.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
lightwin-0.11.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for lightwin-0.11.0-cp313-cp313-macosx_11_0_arm64.whl
lightwin-0.11.0-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details for lightwin-0.11.0-cp313-cp313-macosx_10_13_x86_64.whl
lightwin-0.11.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for lightwin-0.11.0-cp312-cp312-win_amd64.whl
lightwin-0.11.0-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.0-cp312-cp312-musllinux_1_2_x86_64.whl
lightwin-0.11.0-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.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
lightwin-0.11.0-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.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
lightwin-0.11.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for lightwin-0.11.0-cp312-cp312-macosx_11_0_arm64.whl
lightwin-0.11.0-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details for lightwin-0.11.0-cp312-cp312-macosx_10_13_x86_64.whl

Total release size: 16.0 MB

Release files / lightwin-0.11.0.tar.gz

Download URL lightwin-0.11.0.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
6c13d62afe9024d8b60b5f131a4c7308bbfd69e8512b10b72c95cf22d9cac154
BLAKE2b-256 checksum
How to use checksums
ba9643336217df905520f294a54961ed4ad8d64516c853b66de00e3ecc0ec4d8
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-cp313-cp313-win_amd64.whl
Size 717.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
9c65603dce0e14c958d5b0684588a332ec6362ad5a58a5e037c38f2fd1b34b9c
BLAKE2b-256 checksum
How to use checksums
10c4c9582a4151df15a1918c576e202aa974f9ec69a34c938afa821e03db8469
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-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
ae41e1b8bcba93d778d52df17b14c24455c8d2bda866287ed2564f7f3300b982
BLAKE2b-256 checksum
How to use checksums
581b509f39c555add3ad24bd0ef8a3e48f653cab025b8a1cde5b7c09f715447e
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-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
68940f7b47e1eef300c251e9a05977e2a954b5d58177f2ed1a52ca309e9cbe92
BLAKE2b-256 checksum
How to use checksums
6b3aa518970591cb7c1bd0883cf1ad9b505e608baf5e588e4d04cb666d22582c
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-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
3bb528e1e42283a12d45da1a9f1c868b7a6d446fd7643dba05bcb5de71f94b39
BLAKE2b-256 checksum
How to use checksums
a9de837155214d3e64227fa1aefacea1ac51709b084c980624fe75315d608414
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-cp313-cp313-macosx_11_0_arm64.whl
Size 721.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7c6521fbcbd7cfad214551a17d1bed1279617d809ed26381ec714ef709527d20
BLAKE2b-256 checksum
How to use checksums
3cf8b191fbc429afb57c9dff8ff65287fde2110dc9443362ad452f18162b9e4d
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-cp313-cp313-macosx_10_13_x86_64.whl
Size 730.3 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
172b697d9901d94a08117b4d3386a2c209a2a66bf1b695c95972f99812fe8764
BLAKE2b-256 checksum
How to use checksums
973b31fa3c18e2cfe9c2ddcfcec266904c00d5dc25c68cebcaa48c888f645c80
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-cp312-cp312-win_amd64.whl
Size 717.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
52315ffcd01fe36cd013c62c46790c409cc608f5c4140562b469ce68d92e9232
BLAKE2b-256 checksum
How to use checksums
40abccbdbc8140e10dfa56ef4f48d92c915d8a5ca62cd8baf69d91f60e3c01a2
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-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
467d4fc96bcb2a4f4d01a514980c2197cd89d9dd2dd0acfabd9ee511ca537f37
BLAKE2b-256 checksum
How to use checksums
46cac27f370e559f2bcd54ca036db2bc44f2628e59a6a16aa319f85c99ac9a6f
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-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
3f2e7078238d41585c192f3c5fa3a07c17e7e21fcca460d78545f1d6d4f85efb
BLAKE2b-256 checksum
How to use checksums
43d81a65fee4722d21e309db99b3a5c0f6f9ba369e9887bfd27ee7ee6c5c06a8
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-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
65d3fc94852373f286e3c0d26b373b464303e4520de38dbb28d2ed4784522f2e
BLAKE2b-256 checksum
How to use checksums
29593981cfb798df128bb8139359ea9b3e2e07892a2b1274f191b5326025c46e
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-cp312-cp312-macosx_11_0_arm64.whl
Size 722.7 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3ae450acd6d7717e2325f985f7d6588d25875d0cd7e00e987d43c162838bb7bf
BLAKE2b-256 checksum
How to use checksums
22f07e3e56d3603b9fcef8e9a8ec29d2e52d98102f1528814d73a8399f40234b
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 19, 2025.

Transparency log

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

Download URL lightwin-0.11.0-cp312-cp312-macosx_10_13_x86_64.whl
Size 731.5 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
46f971563f1e337d7d3e7a149d6bd19875c03a26ea297de44310d6490b4cb481
BLAKE2b-256 checksum
How to use checksums
7621a3d39bce3012b62baaa84008aacf858ad93880c2b740bbe35854c487dd5d
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 19, 2025.

Transparency log

Security for LightWin 0.11.0

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.0.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 19, 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.0 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