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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

lightwin-0.16.2-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.2-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.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: lightwin-0.16.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e2cf981068dacf24dc195a76f997e10f49d514d723741641af1bc24c0a6daca9
MD5 f852cfd6300fdea494fb39ff161fdf9d
BLAKE2b-256 1c930303dc8d7d966b2afcb35a33e0dd42b1a8a070a3d9d8d7f9dc6197853b1e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.2-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.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c9a21ecb07ddafddeedae3fc5188289ac8912c6e52076cff4c43cbb8da04a8fd
MD5 202147a59001b96afc394043a5366883
BLAKE2b-256 3d8f5fbe353d405ba9d27c662f966728d1a5cc888b8287d00e3101d8065ff8fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 28dea11aa6f1df2f5d477957f647c459c37d47ad110460797f83665c8b6a0446
MD5 0dc3008aa82fb4afe4652e4ac0f9a2ab
BLAKE2b-256 30b28ae1373279de0abc24e7cf06fda143e4f970e3ae6d4924550f479632976e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.2-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.2-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.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 236510ca03f97474cb3044bb3dc69895df5e5589a4fa2a00f5c355502821a4f6
MD5 e8105315893047d5cd9cf23181364965
BLAKE2b-256 1ffea945a46204d6d6b8c48e94092cf583b46c1d9f16f856acbd30629d7cced8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9b5426f084ed542244419b7491f2567305d15a4d83727bd59f022a6b263f1526
MD5 dcd5c03e110271e0b25fa7bbe7fe7c46
BLAKE2b-256 a849552a5922876f26df11553ba11c4f56d7f25779378f2db6ffeda2456be239

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 feb603d80ca496a92a3abc5e6c54f386c721093ce22484417aa0a38e8d585184
MD5 7458d03325b63cd966186832cd18b5de
BLAKE2b-256 7c395e68f479adf36cc0637e8d5c1e129f53d2b7d0d18037de8a09626bd60508

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.2-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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0ffc1150aaafbc3d59eb348f052d93887b90a85387720e46b7b2a8113c295e71
MD5 5401ab72ec07e55d401ccb411dd67765
BLAKE2b-256 a670aa5aeaf8e53434df473edda631d2bbfda31f434ee7773cd65f913e01d979

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2ca089074361582f68d3a6b92884594c9fd8aadb8991c4120708458b257dedb2
MD5 0b830c36ddc7a8953ba966440d04a191
BLAKE2b-256 bbf04de45f75d7884d1d315af860dfacb3a0240f689c05ac8748eb0cb63487fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.2-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.2-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.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8862afc5d5002cd9e3a5cd0f8e53ceb6d32a9a6ef8453e09d9a41caef0bd929e
MD5 a3f197ea5b8bdbe60cb123ed07aada2e
BLAKE2b-256 fc1a1392fcbab9bd6ee019b074cf4654edf3364a7e7393a31823db22b70e256b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dccbdb60bf48ffe9dc4c6d94ae0e01221d3b00fe4857641beed0bd6e3c1e1690
MD5 93e131ebff2a6c8c9be9544a1fa005a6
BLAKE2b-256 de99443cff5a58036cb03d8842abf50cef3dd471148b0898e096ca935e1e54d8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5808c4c0f2da8dfaac2edad0e2f6fc633034b8a02e4caae10f2f15b5499ab68c
MD5 69e158a20917a843814436b8c2763bb0
BLAKE2b-256 d7ecd1a2c4aa2260252ef1bc53ce6a4b4ed09e45262dfdfcff998e3e5cf9c358

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.2-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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ae7343252daf4a4e8e09f0d6db8b8095bcb10093a6f214ff46589e7b4ecab7fc
MD5 edaea2ee9eca46ca9c12dbbdaadcac4e
BLAKE2b-256 dde837fc9c65149706f6e89fea401a0a37c397a6b5665abcc3fe3eaec6e45eb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 daf9139a65d2d202ad3c58347593cc0670573eff416d8c7d38943f6b1648b903
MD5 5e574277e688fda112015c94a5053db9
BLAKE2b-256 f4b6cf0d8a8a2367c5140083588179b56e786a5fc7d71d0062f6dd746e6376dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.2-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.2-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.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 65921d5f1105d5bc273a253d8db8d2944df98e0ccfd58741768b2e53f9bb1095
MD5 d085a3210be665629e46c110415b3b32
BLAKE2b-256 484de492d149699f51d1d9c9d9ec0fe7626bf78ae943e88973ccdfc87a7fb99b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 957a18740969056ce47dc5dffa2fcc9d6a9d78a6190d72e11f6ec139cd49dc5c
MD5 fa3114374f94d769a3c80bc00bec08e8
BLAKE2b-256 5430c47d05176611a96246fbefaec7d255ff9909985a467f499ac2da86601db4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8fb3fa412e85150a15fc28e6c53be41d5b547d415273460284a0e0de017bde6
MD5 ba18582daa9f8eb042ed76dde72804ec
BLAKE2b-256 d2915b608ee88caed79ed8d1ea47eff34ced7cecada71fc769b54c3ecee9b06b

See more details on using hashes here.

Provenance

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