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

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

Built distributions (wheels)

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

Total release size: 16.1 MB

Release files / lightwin-0.11.2.tar.gz

Download URL lightwin-0.11.2.tar.gz
Size 4.0 MB
Tags Source
SHA-256 checksum
How to use checksums
21f670fe3e950b5810ec136d38c02227ce91c31fa822cce554e068dd7fbe89bd
BLAKE2b-256 checksum
How to use checksums
67ea996ba89fe4ac57e0fa3047b65425ece8d5602cc0705293235b8e07a5b525
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.2-cp313-cp313-win_amd64.whl

Download URL lightwin-0.11.2-cp313-cp313-win_amd64.whl
Size 721.5 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
bbd6d5ab2f0b102b95abbdf2c181c054c2b5131aaa68df03ec561ed1bb0b00cf
BLAKE2b-256 checksum
How to use checksums
5f90eeb39d823d4800cc5a9f74fea4f769df1054518fe0631f2dce7c28a09612
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.2-cp313-cp313-musllinux_1_2_x86_64.whl

Download URL lightwin-0.11.2-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
dec6455d5876b0cba85edc2520d329892a9a892d273b082ca040e6d8931ae236
BLAKE2b-256 checksum
How to use checksums
fbaf9ed653beb576b3fb7ab2a356873943658e1623e55934325e6150c0c6c001
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.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lightwin-0.11.2-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
53f0f111258fc355ff3649a661118032dc70fb7bbf70565b906a858ef1d6ade4
BLAKE2b-256 checksum
How to use checksums
f06636f8914b27ebaa70adc722a09ca6516aa610f891799a92f2716387276f42
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.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL lightwin-0.11.2-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
1c4f7a80ddc6dcc9be99a6c92479f1aa35eaa088706c1620ab018e81710114de
BLAKE2b-256 checksum
How to use checksums
e73376551323396c8a0e5cef36e1d1298419f8651085da905e731d8dfc3dc248
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.2-cp313-cp313-macosx_11_0_arm64.whl

Download URL lightwin-0.11.2-cp313-cp313-macosx_11_0_arm64.whl
Size 725.8 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a696426e051a9d56cbae49cf5fb27cf59fdf41a8223c8f95c02c0bcde1c11539
BLAKE2b-256 checksum
How to use checksums
a334e36ede8acf314e9269c11e5d8a590b6c07bc313bcc8c7a785341c617f20f
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.2-cp313-cp313-macosx_10_13_x86_64.whl

Download URL lightwin-0.11.2-cp313-cp313-macosx_10_13_x86_64.whl
Size 734.2 kB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
ee15c7415078a260c4234d4c17db6eaf171161925fc748b4f22c390e53cf36cb
BLAKE2b-256 checksum
How to use checksums
eed842a3a51d1e342b401b72a37fc47b326e2978973d1a4b3f520ff790ae26e4
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.2-cp312-cp312-win_amd64.whl

Download URL lightwin-0.11.2-cp312-cp312-win_amd64.whl
Size 721.4 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
6dd9454167f5544700052789b20d3f5738706d5581972e69bb4d8ef1ccd4f29a
BLAKE2b-256 checksum
How to use checksums
41ea192ce869c3713c3974a68baedd54c2b5bb3d367dab62d010edafa68deed1
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.2-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL lightwin-0.11.2-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
3d9b59ca87705921af4454b2aeaad3fe74052df39453550d6b07c4aedfc1b7de
BLAKE2b-256 checksum
How to use checksums
0afb0324bb6bc0fd62a235ec9a2626fa33c6c6c9651f3ab45bfb67ed18e792c8
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.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL lightwin-0.11.2-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
ab6bccc90bff1e831c70c8000adbefae3071d5aaac609f2e95b972441f70fd14
BLAKE2b-256 checksum
How to use checksums
43e04726ac560798a24ad6a3de6769828cd51a20522472f1c9237c2831fe8ba8
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.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL lightwin-0.11.2-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
883e74aaa3af80ad28878cfb07f21de339b36ef62dc0f47a6122900a13abedd2
BLAKE2b-256 checksum
How to use checksums
6722b15d72ecf1b4369a87400eb21488b8d5da352855a6b1b08b8ef4888a3fcf
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.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL lightwin-0.11.2-cp312-cp312-macosx_11_0_arm64.whl
Size 726.6 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
af35b2b00a5cd80191c06b62a5d4b576062a4b25fe4eb2ef124bb5a649f4bc09
BLAKE2b-256 checksum
How to use checksums
40c9233f4ce08d5f79936521949b31259139214653c34fa4a8014800b9d863d4
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.2-cp312-cp312-macosx_10_13_x86_64.whl

Download URL lightwin-0.11.2-cp312-cp312-macosx_10_13_x86_64.whl
Size 735.4 kB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
9865919d3a58cce4631e8a4a4e98915ae5e4f062ec6d6ed60ddbbb301aeb7410
BLAKE2b-256 checksum
How to use checksums
e0551b0bd325029c098ead1ae6b641a1a7872a5670fbcc352dc207dbdc2af701
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.2

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