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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

lightwin-0.16.5-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.5-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.5-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.5-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.5.tar.gz.

File metadata

  • Download URL: lightwin-0.16.5.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.5.tar.gz
Algorithm Hash digest
SHA256 715c334c03f7e90c5fa67759ff1b977bf5cf7a8932717f07871ec046a66ee00b
MD5 d75fa512b959c1f9ac09566b66d23861
BLAKE2b-256 39dbe40a715c4a149d245667f36adfa71f6978066ec3f6445d2b39fc6ea105cd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.5-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.5-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 3506fae9a1e1b311713488b27c1cf43ce61edbb70f2a875f30ad47a97e91a37d
MD5 5c737c15446a5d34a8fade0a6c40d817
BLAKE2b-256 75eab2e3d20fa509c2356b250ac4ffd1c53d621350227b9ee97616efbad95257

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d41ab02eca565366afca39a493912619120401f37895baaa207ccc5c836e6818
MD5 4ff6ab3ef3021512edaccdf98a626432
BLAKE2b-256 3c78abe4a095b9cc2f7c2cd162a9881ebc6dad0f89eb84b51073954d7884b847

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.5-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.5-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.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b251f40d0f847ffd93fd715c465ca3c19bbfc8efd09968c14993bcbd436950d
MD5 065713d4a1356b39a5098236375069a2
BLAKE2b-256 115b30eb0c5f03d9cdca7268e1edcd2d221eb97a81d916cd399d576ebf86b874

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6fc7f1641870d8f15217f2a515a81081de813d0e0e59f533f27b41fce34565fc
MD5 b80ecf93e6c326ccc7e6a273c23d70c3
BLAKE2b-256 ec0120d1ce886b5f438143b3a13b19bb758f0e53fa1191b66bba0eeda058313e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 534c077bde0f4fc948902af45f2fd65b82801fe1682758f9cf5d269c2777309f
MD5 e3f951a0033c5c3ede0644fbd5a7879a
BLAKE2b-256 3c6bab330f74fdc4bc1da5173a11971234b384b0b67b99fc16b9a2e9c68e2d43

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.5-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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 54663b09a1b83d4aed9ca4b4d0d1961f20ee07eb7e11c7301b546d99dcb2cfba
MD5 313d1034066af2f5223485adc4549bbb
BLAKE2b-256 dd3b498af9a711b5afb9fbaefbb973195bccdb6e19d0550bdaa24cefca209f10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c3a99026a07708534b2cbe9a2c4c9f7863dd7534f663a7aec472660e7ca0654e
MD5 b6e4ce05c43ca56f08c080ae17cfac6a
BLAKE2b-256 214eda087e4cacb3839b3d4a6aaf61ad16120a7ec18e859c8d024952830c83ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.5-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.5-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.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cb023ed9e4dc137c76d88e499a0c84ce8af595c0e81547ea148f6b4edb874d60
MD5 a2d732d012962762193fbc8bf97b806f
BLAKE2b-256 6ee45a7a6b1f78d1e18ae84b04ad703134dbfeb45f6684d13fbbbb8ac41db70c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cbb18a7b88d9fe23044a60907f65e5cd2cbbfbd74841e461605ea71b524b239a
MD5 e8b7ff121da60c9dcd79395206893577
BLAKE2b-256 eb6615a134c162f4982d47f395e63c8755869041c8a90e105e0f7515cf28f71d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a132769b9ec2edcf3fea31729d6ac72e3b57fa27782fb24dd565ccf441b8efb9
MD5 341211e130915f0c02fd2bb6510f8646
BLAKE2b-256 e50829535ee952feaf55010971bd8261e651be92cf0e1588a9c5bd8589547562

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.5-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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5b6accaecade3c3bbf4970f918061ca0e7e82ba2c245f175dc38774ad5382b4c
MD5 f6461adbb6e640e7a11c95388a9e4d08
BLAKE2b-256 a1b084852145c810bf0168e8340f473e2bdabf7fb0e11dd0cc63b98419cdc4db

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dde0d197df73a6f79a8b298975fc3a9bf69cea5c3ea8adba3564ce633cc2206d
MD5 72bb17a50351fec45d5c1840eefda6b6
BLAKE2b-256 6e4e6f29989323a50e87e18d76665f8065602121114330015e01a0942b7a451b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.5-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.5-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.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0929e9c778d92cd63703b2aefaf512970e4ceb3f8979c483e7822bd3885ef3a6
MD5 0ebd5308eb6c3c74698f4632c80a96ae
BLAKE2b-256 5116ad1e32891da63ab8362bb24b3c49138a2a7bc994d14ca822d4b64b77dd58

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b01f30a1dffd95e756ed33e49848d875eaa9c0929cb6ebf8437ab7eb919be0c2
MD5 86731e62204e27046bedf71ffa2a1ff0
BLAKE2b-256 dbaf9f529972e93acc9eb5d51a9a2434624ad6b0bdefc4d3686daf6857beba0f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41439e6b7914b02519f7aee10d9a74729912400330480ae298c8f039c3c7d5b5
MD5 a5208d95b2a98bd4286470782727ff0c
BLAKE2b-256 0b2bc9c52c692978cd771112419319a842e5c0eb86ab614fb8173d1a80cf142d

See more details on using hashes here.

Provenance

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