Skip to main content

Automatically compensate cavity failures in linacs

Project description

Py versions 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 here.

The steps are straightforward and can be summarized as follows:

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

If you want to edit the source code:

  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.

  2. Create a dedicated Python environment.
  3. From LightWin folder: pip install -e .[test]
  4. 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 here.

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.12.1.tar.gz (771.5 kB view details)

Uploaded Source

Built Distributions

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

lightwin-0.12.1-cp313-cp313-win_amd64.whl (725.5 kB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.12.1-cp313-cp313-musllinux_1_2_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

lightwin-0.12.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

lightwin-0.12.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

lightwin-0.12.1-cp313-cp313-macosx_11_0_arm64.whl (729.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.12.1-cp313-cp313-macosx_10_13_x86_64.whl (738.2 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

lightwin-0.12.1-cp312-cp312-win_amd64.whl (725.4 kB view details)

Uploaded CPython 3.12Windows x86-64

lightwin-0.12.1-cp312-cp312-musllinux_1_2_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

lightwin-0.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

lightwin-0.12.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

lightwin-0.12.1-cp312-cp312-macosx_11_0_arm64.whl (730.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lightwin-0.12.1-cp312-cp312-macosx_10_13_x86_64.whl (739.4 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: lightwin-0.12.1.tar.gz
  • Upload date:
  • Size: 771.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lightwin-0.12.1.tar.gz
Algorithm Hash digest
SHA256 d1b1a58fc77bb519d18e7e77715c87845c2c6e9fa553ca38fbee6f9a521a7ec3
MD5 870de8114776d2db6508824bc2f01c49
BLAKE2b-256 bcb681e46b666e74d8619ec942f0a346ed73e33de5da09354907826a18993eb9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.12.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 725.5 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lightwin-0.12.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d72c0967a47ddd57b0fadc36ba11c1ecbaec1fa752da64e028915a73753eec0a
MD5 079cd889883e52ae55c0887a01f87597
BLAKE2b-256 d3a3a59136e97266a9c02bc7a5ca2dd4bc417d400c069fd390c2977f28fd2bbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 14bb2bbc834bc424d8c81ded70dafdb94416328fdf772c4bd81e9e23eca9f01b
MD5 b2296955dd517ec88e1f3493600a2c9f
BLAKE2b-256 ca8bb4f8fe2b41633da925eeeb2fcdb8d5f92aaaab61ad91d3fb1cfe13914fe1

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-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.12.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ebbc9ff9bff5ae2fad99d33f0fb3135f74071686cbb62baa0a0405e07df101c
MD5 ee041134b4ae1698ba74010b8171014b
BLAKE2b-256 573957ee448c42343a0eebc0a360d85b6eec550d3e2c248077e66205b285be8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_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.12.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5ce4ae73cfc4cdcd222c49943b770a22ff367d0c3be09488bf30869e82e66297
MD5 5716b84f7c8759cfc35b179d538afcc8
BLAKE2b-256 b67845594cdc722b808058fcc883b6c36054268a34fe35cb27bff4aeee27c743

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_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.12.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d273130aaec0ce5c4a1ed7130d196ec10466a0f169e949aa3766a60a0d5fb8f
MD5 05196cc757eb2bf374eecea980cff6eb
BLAKE2b-256 6e4277f089cc85aed38b58d5526b58ccdc12e519ebca6c5ddbcb98313d0c0842

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-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.12.1-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 188a4fc00e0583995cc1e475292bf770ce896952dcc5bc058330f7e4bf6b7f13
MD5 293822048fd2b066b2cc3ff128c4b657
BLAKE2b-256 4909996facd33ec9bf4ce57b0bb17ee37b02ee1cf67861aee643d17beadb957b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-cp313-cp313-macosx_10_13_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.12.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.12.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 725.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lightwin-0.12.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 67ee5d2800cf6639940b19e4a76c662a6ee036002b0ae00972a2400e075c5c3f
MD5 5d515eb5e63f5ac7bfba6bcccefce267
BLAKE2b-256 8cda3e5f8ce7f911b120548395dd6bce6dda9e3afb80980e5d9964d73d8cbc27

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a181302ca2e06222f8d37ea89fbd74fda30e551a96b2c4983089cc36752fc62
MD5 0471403fd027e9fd1960cc1abd40940a
BLAKE2b-256 582818c1fc6025e27dd492412fd7fdffc688e83c58cb424162dc4d8c514f8ab2

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-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.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8263a852d30dff63cd37477e9a0d57712fbbf9a99c343b153b988ca57c8061fd
MD5 de5587ed1805618701e9e095c274b260
BLAKE2b-256 7d94ab5f273a403f4b0d3ca0c23ec8d57e35c63dc3b566eee1554594d0153e9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_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.12.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e6903a751c906303aba766a2020c7cb076f5f76ae9053e63541737fc02a1fb39
MD5 5f3a1f7328b7c5a7ac9f148a9d6e40e7
BLAKE2b-256 c027e17b400b580e76421b54fa5467a89b4869f6a56ff806c9a7bad9d751be87

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_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.12.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82de0b7fa8d071761373d74b8111d9f44015b748dcb01dae69d40a462366bde2
MD5 20e970c94487124d89950de340e71d6c
BLAKE2b-256 e3f365ff7a60c960c30b3ab914df16c6fded331a8ae3ed19ec24caad08814586

See more details on using hashes here.

Provenance

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

File details

Details for the file lightwin-0.12.1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 19bfa6b8dc2df0b10ff27b3bd411af3560d29ba2f77b4c4424aefc42c687ef0a
MD5 e6414546959233d828a2178cb75719a8
BLAKE2b-256 36ce734f9c21bb7f12afcea829fc89b45afb8ce7b8be6c0a70d8aca177b68bad

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.1-cp312-cp312-macosx_10_13_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.

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