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

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

Built distributions (wheels)

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

Total release size: 16.1 MB

Release files / lightwin-0.11.4.tar.gz

Download URL lightwin-0.11.4.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
ac418430d7f447260c489861ae147d28a81dc18a2a5c62d627f553ed1a2f73b4
BLAKE2b-256 checksum
How to use checksums
5cc69efe25e20aed8b2ac7a1b34091e5df986fdc03a80869e4e603e6f7263c47
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-cp313-cp313-win_amd64.whl
Size 724.7 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
89b3c48240710d526e8cecb765504caa82a64ab6dbfdabd69461a245475c3f40
BLAKE2b-256 checksum
How to use checksums
29de22346b8e0130ca97fb58e47ab8c48c92be1d11755c6c3c9373e15c202a66
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-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
d9bdecabd699aae75c975ec74ec4c2bf7f61382d092385bc282b53fc0264d30a
BLAKE2b-256 checksum
How to use checksums
923b8fe466539ff7d1284acd4c1ffe2b09e591412ee0dff2a21d780582495c6d
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-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
3f8b5bfb1954e46199bd652532108f0bc7851cb5e0c4128fbe0343ecc17cb958
BLAKE2b-256 checksum
How to use checksums
244bae286be279eedaec6e1a2f7b4647cb862c03e9b7fb02b6ee9250a2b08bca
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-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
e3408dd17f9cf1c28cfa9c8b6c32286706ba2c13c402a77e43f396420bbe3acc
BLAKE2b-256 checksum
How to use checksums
16ef0cbea0ba993555dc2c87cf54cefc04022609a78ff0366ab38bcb9805562c
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-cp313-cp313-macosx_11_0_arm64.whl
Size 728.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9dc8f3eead499f504584efbf84cfbc8967c6c87280985686355baca365ff3a4e
BLAKE2b-256 checksum
How to use checksums
79521c1fc7468bdfd82741a45e662e20333cb99fbc204b55edb0dc984ed0f0a9
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-cp313-cp313-macosx_10_13_x86_64.whl
Size 737.3 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
5b7147a5d73c17d052245c72e0e6bd5f2e1dcad727ddd06de24bf1671fe112cc
BLAKE2b-256 checksum
How to use checksums
937bb8b57c1ae1c69b27c93d03bbf110839c5407d0f613f952de0d3b9ae661b0
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-cp312-cp312-win_amd64.whl
Size 724.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
8362c299c4daf3084f6c382d8356ccff5dc422c5db49552243122dd31c7dc6c4
BLAKE2b-256 checksum
How to use checksums
138ed5b3f670741420a29d975bb26ee62d98da9f2ce1782e25bb46ea5769746d
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-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
0110b4b587ecc7664a700a1471493770de23a529cf6e7eb92a9c480fe87f4455
BLAKE2b-256 checksum
How to use checksums
68cba783c8c03f6e00c427d757780b70a40bf55767c6ce5cd9d35529e5fe60a9
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-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
9bebd7c4e10c5522ce8f2ffc0321b3150862632101d53fa53d5c910a34c78abe
BLAKE2b-256 checksum
How to use checksums
0b9ada9a380b358730be05ffffcdc68e37a355a4c18a431370e21659c070220b
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-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
316e76364b3dfc479e90be8985cfa1634809869a6802466a148e8177b2e53e89
BLAKE2b-256 checksum
How to use checksums
9a36ed1d990d5f06eb4f9ef4170455e637085d82fc7f41724921d1704a64d6b8
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-cp312-cp312-macosx_11_0_arm64.whl
Size 729.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e39249aaf93a00295948c28b28cbfb72a5dfa1222dd1a0c54b410c7ba22a6aa7
BLAKE2b-256 checksum
How to use checksums
b8a41d8d5c2dd1be082837d1e9ca6860f24b16278f09a4d08bda56a6128266d3
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 21, 2025.

Transparency log

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

Download URL lightwin-0.11.4-cp312-cp312-macosx_10_13_x86_64.whl
Size 738.6 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
55e8a8b84146ff75239073548c3c0243e52637a8ec3b8ee3bb0d0d4dc7f34881
BLAKE2b-256 checksum
How to use checksums
90d85b418bb62dd76a82867e761c71a928479fd9b61ccc6e4f6859661b8dc792
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 21, 2025.

Transparency log

Security for LightWin 0.11.4

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.4.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 21, 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.4 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