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.4.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.4-cp314-cp314-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.14Windows x86-64

lightwin-0.16.4-cp314-cp314-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

lightwin-0.16.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

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

lightwin-0.16.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.2 MB view details)

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

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

lightwin-0.16.4-cp313-cp313-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

lightwin-0.16.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

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

lightwin-0.16.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.2 MB view details)

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

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

lightwin-0.16.4-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.4-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.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.2 MB view details)

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

lightwin-0.16.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for lightwin-0.16.4.tar.gz
Algorithm Hash digest
SHA256 cadf416ecd1e1a065cb00c1a35572dd52191cced89b6ec1b5d5517d154344ac1
MD5 ea35f0f7e0834c07837cfedb3f83d7e6
BLAKE2b-256 98e3eccc96a5fe2c9af26d35a2fd707453900c26cc651ab7e3ca302c899b203b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4.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.4-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.16.4-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.12

File hashes

Hashes for lightwin-0.16.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 aa13c51971e5aaea11bcec3845aafecbacd8c35f05f14491cb4388bd7ff2bfa8
MD5 0f22f4441c22dfa02655b603069fbb72
BLAKE2b-256 c6cb66ca3603600525c2019d36aded51f47e8db9792df6a7e717c4ea9f8a53c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b3d087968162461d380b4fd7ce0af6a448b6c453b84756d85f7f062641fe03de
MD5 281424f485b0d9d056604575a5c2ca69
BLAKE2b-256 5ded6cf64ab70291c31b6a1f36160cb4fff1e87e3a283c5fdee4953162ecbe8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-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.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 84082fc91ca86f2e84f16f777d8db80a05940e4cd4b79413d275f10150ceaf16
MD5 5d75538910f535d67d073f2b32541b85
BLAKE2b-256 1ff562f1f15b3444a6b35583aef5e15558f42284058b1ec4d6adefc67a7d0bfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 18b29f8f2273d11509eb44810238a99a0ce2f997d52bdb7b7e698b21c388f784
MD5 33a9991bc12048c51d2a4be6789a29c8
BLAKE2b-256 d64580567548d0c382687e78a0000809b7f049c4efc978a67951d6fc3946ac78

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6d413038a17e22081568728359c8897032f201027e9bd5606a213c52b68097e
MD5 840fa0077be9d5238fde62a3fdee589d
BLAKE2b-256 df50e247ee5d66521b1d16659684709ba976076f51874120073bb25c30737a41

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.16.4-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.12

File hashes

Hashes for lightwin-0.16.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 23e3e83883f4b329283f9857a0cfc6e55379214dfa4af9238de4b9499db5b6dc
MD5 080ee929042d0ff972deca9b5ec45991
BLAKE2b-256 851a858f4ae209995c830e95d8210e3fc69c87d994829ee0193d8181323846bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a64ec43b3c63b259e95efef1b6639e38868925e4b62c3a544c9e4d4a13ccfc45
MD5 efdce196ed79bd9dabfa02287f2688ce
BLAKE2b-256 9caadb7ceb7f7033effc8a831d90619df9034fb948cf26f512aa5e2e75b04e53

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-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.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ac65242be055cc164bf1791374855cdefd224924215dcc76460643d5c7add0e
MD5 954f7e7d8e587afd70ec9ee0368f94fb
BLAKE2b-256 7b5276ce087626fa865e61a0a753c611293894412831ef498609eb6a34e9b0b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 db96ef0445af90a65694edb232a78062718376e23e596c683c34d91dd07a9f79
MD5 3ce9fa2ee2f33e3096a22a5b408b53a2
BLAKE2b-256 9b84aee4be1d53c8faf5aa3252b6d6e309db4a30f32281dc10e39bce553a4e65

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74e5e576a26bf797bd4a1b5aa51afa023525a906fbd892d829aa433098dfd47f
MD5 90b88840904bdcf6b8f1ff10e6e98f3b
BLAKE2b-256 ab199c83264461f4d6d81ef4117baf2c1fbf4c8db446324f2991ccc6a7f6bd91

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.16.4-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.12

File hashes

Hashes for lightwin-0.16.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7f2e57c95030642e328805a1e8da9b2896aa036328472c11adba7cd6a28a387c
MD5 8187a0ed4ae7d51b69c8eaa95460eebf
BLAKE2b-256 fc35740c1c59b3f7bef4c4709545e6cc2eac8a251c05526d321662e25c857187

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c995470e73be23ab797c48d6d05208a2cd21692635c659f63f84c0734dd5eebc
MD5 2b5cb61fc9d962aa42b1629ed2158986
BLAKE2b-256 fde5cd391a988419276cd5118235d08c741388a071b7c611582d16014300421f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-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.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71db5d835ce9319c7a77991680ddaed78f58ff6e35a5a66d85bf7b7ffc5ae8a4
MD5 ee7a10c6fd50b1379e160598073baf2a
BLAKE2b-256 e94673404d12ad9e3d4068dd3287b98bef774734f468157147f429b35eb1ade7

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 986acd9b21047e08148b4a41db146f60b57a66dc1e7d0e4862e23cc4309055ad
MD5 9d05e08bb80797ca184cd0607e98842f
BLAKE2b-256 ee2b68bd837d6f56175051d661c13a39a50fdbf5f2d574a8be19be828cf6ce47

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f60229f69b4bd2db9a5a712af918c674cdf64a680bf676539037e29af22e4b11
MD5 e561fe528b895fc2ed166df945693271
BLAKE2b-256 b1cc8dd8ac1358bf50a0cef5dbe0da00b1ca570c25259d7c449441dcb4afae0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.4-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