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.13.0.tar.gz (780.2 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.13.0-cp313-cp313-win_amd64.whl (729.7 kB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

lightwin-0.13.0-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.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

lightwin-0.13.0-cp313-cp313-macosx_11_0_arm64.whl (741.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.13.0-cp313-cp313-macosx_10_13_x86_64.whl (739.8 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

lightwin-0.13.0-cp312-cp312-win_amd64.whl (729.6 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

lightwin-0.13.0-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.13.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

lightwin-0.13.0-cp312-cp312-macosx_11_0_arm64.whl (741.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lightwin-0.13.0-cp312-cp312-macosx_10_13_x86_64.whl (740.5 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

File details

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

File metadata

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

File hashes

Hashes for lightwin-0.13.0.tar.gz
Algorithm Hash digest
SHA256 e708c85957ac1b7b212b509534277284af568453fc4cb8a2fc46ed7a68192849
MD5 497c028ed8223c14a104da06d461ac83
BLAKE2b-256 96667924a3338b376123ac7ed60ac06711fde3c2298ec900ad808353b7293336

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for lightwin-0.13.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1363c21218104791783c1e0bfdf43c678290918d09eb6c4d972a8a8ecae050dc
MD5 18d63a00815aa820da5be2f5bc2bd27f
BLAKE2b-256 08c25486bdf4ba74704e0028be3009d5f7b49f7b97d9218c769bd8813b2daf8f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 744956216582f7d38510d82ce01ff11da14ef4916d047a639a53ac2faa89ee9b
MD5 0c0b816f6d78f225a50c57b4662a33ff
BLAKE2b-256 5c29ddecb36c2684f30bca95fb06b36114fd0eb2ad1742920aaf82a69e5409c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf30a6a872773a24d7327c85b298649b4a66ae3b9b40dde98916cacbf8766678
MD5 d2724c99384e102e6153bfce68a697f3
BLAKE2b-256 84fba98dbb1115ee3e37872cd9e2f60d00e3dd71a937cb472114b3904d20e463

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0bd81b1fc4bc3bb8ecf27e7aa47ad3a1f86dc9e163baf4af2b1fe6ab4c954c8d
MD5 4ebd1a48d58adf85add30a7e31a6e555
BLAKE2b-256 00dabcb341bfd8f6a3541b5fab722297859885f79afc2869f34f00ea6067bfdb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43eeb03682ba454a673de6a424004b3747b89e983393c42c8e8da24381484fec
MD5 20ae49b784a5859d504049cb17b5b71d
BLAKE2b-256 cbda9c50cf581a19e98abd73c8c30586adf0c4b48d6c8f0cd46070ca533485f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7af96a26c7f1e648b5cebda977e3295e248f3be50325e57b1f0454d33a14c6ec
MD5 3aee9a9293f064b98f680f42d5f842c8
BLAKE2b-256 50baffb36ed39f60c0801a008c55639f419bdf03ccf1a95922eac03d5e30ad62

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for lightwin-0.13.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0526beca5c0cc73ae54d60ca4bc500a349683702d485e89e8582c6813ea01ec7
MD5 433b6341c5f22e7e85625be2b32b1fc0
BLAKE2b-256 3496b3490a99fab43219919f95fdd807b1ab726e626ad00aabd4974f1776574c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 27d996c445977058cae040084cccf848f5fd219a21e373ff258801c897eb658c
MD5 a59c8842050eada27d16c3b94d250e25
BLAKE2b-256 a9cb107298ca7ebdbad7f148c7d57a6f0906728b29c38bc55b4a5c11da031921

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddf94d0d3c3c0e1733c4dc9f6acbf7bece791cddc6670f38344ea44a18b0e8a5
MD5 bdc827b038e664e7d14616b4987fa092
BLAKE2b-256 27275facc8e4265d0a2f5d93800f1459e593146bbb2fe57c7c0c612faf28179d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fc1bab0de2a14692c559b855934df06f28b6ef7beb8d0babcf01338bc98a0629
MD5 047a9a53e67fb5fc763e425cdb78aeb6
BLAKE2b-256 2d55b1e0cc8b5c83d1ff769842da96e67e81ea8942379ec71f8043aeb72c44ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f156e9d32de93b46bcce85ee7597b0cd4440c7d67b5d0487ab04d0e3592b0aed
MD5 6f598f58391e5ef7096ff64925da92fa
BLAKE2b-256 24fb39fad847bf6b87450dc55499b7c635329ed0e5816f64855eacfd551befeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.13.0-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.13.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.13.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f771b94772bfed2f288cc7e7bbdd129302c55798cdf73f246de3232d52df30fb
MD5 b801abdd9cbc3c50f018ecafb4367f14
BLAKE2b-256 53db27c83b826945060b66e9e999d9840ec005ed2862e5f273b4cd124936992c

See more details on using hashes here.

Provenance

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