Skip to main content

Automatically compensate cavity failures in linacs

Project description

PyPI - Python Version 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 in the documentation.

The steps are straightforward and can be summarized as follows:

Users

  1. Create a dedicated Python environment.
  2. Run pip install lightwin[cython]

Developers

  1. Clone the repository: git clone git@github.com:AdrienPlacais/LightWin.git

[!WARNING] If you Download ZIP this repository (which can happen if you don't have access to git), installation will fail at step #3. A workaround is proposed in the documentation.

  1. Create a dedicated Python environment.
  2. From LightWin folder: pip install -e .[test, cython]
  3. Test that everything is working with pytest -m "not tracewin and not implementation".

[!NOTE] If you are completely new to Python and these instructions are unclear, check this tutorial. In particular, you will want to:

  1. Install Python 3.12 or higher.
  2. Learn to use Python environments, pipenv or virtualenv.
  3. Install a Python IDE such as Spyder or VSCode.

[!NOTE] 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 now automatically built and hosted on Read the docs.

How to run

See documentation.

Example

See the data/example folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightwin-0.16.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lightwin-0.16.0-cp314-cp314-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.14Windows x86-64

lightwin-0.16.0-cp314-cp314-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

lightwin-0.16.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

lightwin-0.16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

lightwin-0.16.0-cp314-cp314-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

lightwin-0.16.0-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.16.0-cp313-cp313-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

lightwin-0.16.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

lightwin-0.16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

lightwin-0.16.0-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.16.0-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

lightwin-0.16.0-cp312-cp312-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

lightwin-0.16.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

lightwin-0.16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

lightwin-0.16.0-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file lightwin-0.16.0.tar.gz.

File metadata

  • Download URL: lightwin-0.16.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lightwin-0.16.0.tar.gz
Algorithm Hash digest
SHA256 6ce33d092350f47d046920d04260acb263fb1b05ec1c7eddedf8757f8ddac413
MD5 70c05d6c68ae0fb8e217c8d7e1a44ff1
BLAKE2b-256 1ba0670d61fc147d25fef5af7c7cee60d239243314fe84d46606628e494bcd64

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0.tar.gz:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.16.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lightwin-0.16.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 fccfc42faad7216804ba293500a382d0772128e0b8a24440f952853f60be3a22
MD5 446d9e4f9ca2bedb985038d517131c13
BLAKE2b-256 d04ea0471aabb6827aab371a684bd8b5fa3279477c3fe7118586fbb1f286d25a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp314-cp314-win_amd64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 918787db001ba08e3c7c49d48815619efaef3cbadccf1dc5242569ce9b6a434a
MD5 6e95876a0d86ff979863f98a08a69a81
BLAKE2b-256 b2f443eadaf7ff64a532844fa310f15b8acb620843bff8a31664742c87fc7be7

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp314-cp314-musllinux_1_2_x86_64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d527a7b5b5361387947fd0c846d701238636b88fa67637f46bf9787a43d0d6c5
MD5 096c353c255cd572d6f3cc9a2d7cd504
BLAKE2b-256 55044ac3406e11e4446275543ddb55ad4679d40b20b2598fd2ce87328897d5e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f30bdd107ca666d8caaf0e9185e4239ee2e13e64872d1acc2502e9f020f68b6b
MD5 d802864de7afb074075ae809d345c556
BLAKE2b-256 ac7d4f7cdfd45aa70d85669cfe616ca3331a7f215472a2ed98b2fd28d92d3302

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 386b87188080b7d61cb620e884d9d3df2de3ec764cf6b5307c5ff31d08411610
MD5 5e00e7132f508d119f3f82f77c07cfea
BLAKE2b-256 311e25385bfb9bed386cccc27f093abc7f7b384cbb5885a499d6c4453bee096c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.16.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lightwin-0.16.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 476dec1b627d2759897e588acfa5673a953da6ca6c12f18f2e2614efb5f5f560
MD5 b1cd8ab9e97a73dea7ebc8e6b3fc63d1
BLAKE2b-256 64d97ad5141968e0eb814fc307d449c402c01870715ee87ead7c1af79e47ea23

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp313-cp313-win_amd64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 97a4e8e2be1e59f246af09a839df5eed760f201f75876723ed5b8c5784071397
MD5 02c105b3591587c0cde0880af62b3237
BLAKE2b-256 51231644763a74a23a53d6012a8319b4bc250d1e3e58ed89bc397f04b00b436a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 efd1586507d7d218b619079209f7f14a61fc8da0c47d9090ad6fa2c7328d67e3
MD5 ee0bb479835034cd2befcde445f1aa9c
BLAKE2b-256 f143ed1ceb54aa33cf7431cab9fe8acc66c24615fe76ae24d71eeeb6de24518b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7a510a7a6a25f2bd942443a35ee3cdc78c8c6a18e73c1c6e1f2d2f53b23defee
MD5 3ed9ee0bd3e4cfb800f996217a99c9e8
BLAKE2b-256 2eb3a608eaee9d0f6360f7be25bf8add189ebaba67f9d7a172f47daf0b31a8a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 561ca9c3adebd4ca884375bc4fcdb80aa658bfebf9fd720006be093daefb4ad8
MD5 52d1e9fc63ccbbd25279918060fb7a40
BLAKE2b-256 900aeefecc23d2a0d2149857b83c77e0e73edc067490ccd5df4962d6f7763e54

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.16.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lightwin-0.16.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5248b1f202c7b05434785e7ae6fac92b447555d0b768750c8593754cfda15094
MD5 4f5ec8c5455bb033e19b6e3949d11b32
BLAKE2b-256 1f3009c8924d4cca20babc1134ff2d06e1a09f87abc8016bdb73a8d98f1d6cf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp312-cp312-win_amd64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 64b96919c8dbf4df9eb37e3f830145e385da29a1342b358df9b0bbba5e6ba206
MD5 940873a77d1e51f5f41b5671eda739f7
BLAKE2b-256 14891d48e932e11e7dc4b02d71cbf657dec02d09dc950cfd46110581bd3f8708

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5d8a04bf99fe0806b3b0974c672d05ab00c9b73fa1d1a14aaa534fa2de7d68c0
MD5 d3c8446cdbe74578f3f89e62b78fdce3
BLAKE2b-256 d53dea83d0cce4f2603d5673138d6f3633ad9c89bf0ac920cbfde4079ec17bc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cd5681fffd42c7b3fea8a78ef3cd142b6d0f3c751e4430d21e066c3e47a2c20e
MD5 90d16975b0543d4145e99fc5067940d2
BLAKE2b-256 b7b8ce9586e97c3664b113c607109d785d4ae8a7e8415bac13dd7d2650c00c23

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightwin-0.16.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7093306744c037bce0ddb463d193fcac8c9be9d9af66b8b88bc88397b9b28365
MD5 d4949835d39489f85d0c1ad3ea79e13c
BLAKE2b-256 d8aefea705326a29e4a314f4e3dc8b1b7972844fa6a856e814c21765d6f5e7c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on AdrienPlacais/LightWin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page