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

Uploaded CPython 3.14Windows x86-64

lightwin-0.16.3-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.3-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.3-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.3-cp314-cp314-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

lightwin-0.16.3-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.3-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.3-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.3-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

lightwin-0.16.3-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.3-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.3-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.3-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.3.tar.gz.

File metadata

  • Download URL: lightwin-0.16.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f5c120028e00705fc90f99c5e23a8e35ae69463aa0501958f0efc176dd7ebdfb
MD5 cce0135e438a46931b05925260c1ec3a
BLAKE2b-256 2f9af81483434b0abe9c8b1e889d2c8b9eaecb77bb09f8473fdaf3fe73d0dd46

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.3-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.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6fba382c0763cbec1d6d4703893e639d65d907be49b3c626ffcce210f6ac04a5
MD5 13e754f180b6da7d0e545d12769bf644
BLAKE2b-256 b8359b32a01236c63666102668d2dbb5f79c6e79e715774435119eb61981dce6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 272cd476a4fc5e7e7c1c2ce1c6147db0b9c813f04a49db9f5934750099a00d74
MD5 4c7c953ccbb44ec44ac8e420f4ae3454
BLAKE2b-256 9bfb49bf0521b4a7cae8f2ab94806ffb0bc1a8e2b199d4575a3e5b1991e90fde

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.3-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.3-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.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a766eb616d92cbbd9bcada8c15fb95e6b2aeb099fb37747cffed111f4da54e19
MD5 a29de1556c8c5bcd227168359b13b92c
BLAKE2b-256 bd682304734f56d8c2bf31859aca33520da54867450b79bb7c00b8558c47f104

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7d585e3525caf212276562b334af03a1922492d6ed1e1af02249e2d78915d644
MD5 519c918dd78271ca422a52d3783a0c3e
BLAKE2b-256 2c05edc4ba1a7b2bced4664f4b40a9b97915c31f683aef644e75950339195fe1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95590b9db8d08244b0b217c8730636c3b5eca18716184bfd0596205b819510ba
MD5 2825fe99a2bc9094e2a53aa32dc03516
BLAKE2b-256 16b4a8a9565e9fcc0a95818674bf7fa47f8e24fd364c2869586fb8846075a81b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.3-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.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d09f287127b0caa464939c89a6eb7e8907fb630d4b30213301640294bb669802
MD5 4b8b703dcda3407618cdf8caeb1f896a
BLAKE2b-256 375defe7c6d09ee95ba4a1a9e13296eaf0c45f15b9690c88b647c088d34fa6c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7cf4e0820cfe59fa400ded6471f7502d887065d46cf89841f2399fb81aa1bae7
MD5 1c78caee92996d20b4d59321450facad
BLAKE2b-256 d11aa13fd439d072704b54451dad2842dc9f7bc2250bdb4fc5cf31e4e5f2a771

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.3-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.3-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.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c94868f4d4d50d245f6034eaeaeb8788a9dbe60a503dfd4748e8c4ba6e86c8af
MD5 adf9d475a656758d7d5c52d2ac2a3f82
BLAKE2b-256 51748483703ee0a02c07faf316df6cfe6d46ef0190dce3fece64d0770240e6bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 882893b7db4648ee00d5776119e148767b9196d957408868db37c523fdd57b80
MD5 78c8450cea66fed943e3986ba5a31ebd
BLAKE2b-256 86b91d865352d635a079b4b7d55a927cf87ce21eb066ac68f95db41800599979

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c665c3d015e79510d1c1b13b9055d92471c23ba6ceb0e0ddd237dd0a15e32c79
MD5 c6127728786e471e61cf9d80deaddb7d
BLAKE2b-256 ea386e682dc42b76b1ff01f243edd4e10ae0bca64078b41d76bd6f70f02a7d6f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.3-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.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 12b92a9dc978e7c958a9886d8f4b15c2e5e458faaac48fca8977002206345ffc
MD5 2faedc8504409e216a2a5e41b2bc5897
BLAKE2b-256 3d52d1110e5438d7f2881c9f855a6d78cd1b3784ae9d497b862c0a7e2bb36578

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 daef45ca7c5d843d3861814e1d6e89e1df11fa82d0813a3fdc2e25da251f9348
MD5 a0627c1d2a47007195d722a917466c51
BLAKE2b-256 baae31876cb7c8d7165d0b6b0120c06e2a638320afdd89cb0b66443e0cee42d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.3-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.3-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.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 70fef07617289cc846d8097c4b4dcc50dbd011222aeab12d8d13c73584427968
MD5 88dce1a58bbd184365e6f48b5199f870
BLAKE2b-256 e0e0211c167fb14420022bfacf1c0a55a8abd10eeb0bd1238d770c91ae71dafa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 222ad0cf0551151ce4fbf66d57446733bd5510d11b9ad7f36cbbc9e19f1ef81e
MD5 c2aec6d942eb6e26f8dec9de5b57524f
BLAKE2b-256 d27116e508edb1d5d0b812c00cd6bda9ad4974a6d0852507c048132573a9c4b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6f80eb1c48d418c3f20ccd9dee368345093dde9eb27e3d81b78e9b701609165
MD5 ad3d540dac645ece0fe128fb1b2aeab4
BLAKE2b-256 25fc85954d4f942401130d14db48dc669dda5b764891a484cf96ebe6a891d6f8

See more details on using hashes here.

Provenance

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