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 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.14.0.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.14.0-cp313-cp313-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.14.0-cp313-cp313-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

lightwin-0.14.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

lightwin-0.14.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

lightwin-0.14.0-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.14.0-cp312-cp312-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.12Windows x86-64

lightwin-0.14.0-cp312-cp312-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

lightwin-0.14.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

lightwin-0.14.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

lightwin-0.14.0-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.14.0.tar.gz.

File metadata

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

File hashes

Hashes for lightwin-0.14.0.tar.gz
Algorithm Hash digest
SHA256 99f252ed0eb49fb9765af6cfa052a413b2a4d1f12e190edfcddaef33806510b1
MD5 f248740d77be32a814d0bd8849d5bf33
BLAKE2b-256 672cfca964c4b7395e1d9c9ce6797c34d7b456038a0b977ac292215014ce57b4

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.14.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • 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.14.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0ffa34baf163effc5bd85c88d8a167899746df5b7f41df613c2647f1bf05a5cd
MD5 a27a23a5b60c49b0595bfcd3c0411018
BLAKE2b-256 9ee0dc37a9fb9264f76034e264fd8a1abe03fda135ba82cfce671af32b12c94a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e0a834e6b386ba5ed0b4a5df24f6c6cf4d36c4cb48e5fe63e0f6e3729d972aad
MD5 87ab008485a589c0ac2f1350df33654e
BLAKE2b-256 865dfdc8c7136fdcd59918c6b8e7f24f6a79d5fc165218e38b8b835bc3c95217

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b9be0aecd12c021a8cf32f8f62027e6dd1b81de2a5ea2e1b902698d9d20c2f3d
MD5 c7d7eceafa73886c268edc80490fb410
BLAKE2b-256 5c28890830c340554bde53f5cd04775668ee2c358cf6a6152d629b56a47e4a4f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0270ae40fb003f787174bf7ca0d33f434a7dc332fbe5cdc651232629107cd748
MD5 930fd1dfb57150e876f8bfd4ab696b85
BLAKE2b-256 c11e5330600bb2d105ec0ec922699b6e6f31f4f9b1f5200536c69bdf9eca5123

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bb7822f6163788614efa23b2d950468070c622c6a546269a7faf442746ca222
MD5 55544beb237fe6f04ebb9f9765954eae
BLAKE2b-256 579a60a769b4656e140885f46a065f520f38605fce086a0d6aed0fed049cdead

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.14.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • 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.14.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 35ed25903ea3be190ea703ac6b5267427e405009517a1e495e62840c89249567
MD5 401aa1d2a824022a64bd714d254250c8
BLAKE2b-256 b3beaa3032ad230bddeee59534623a8508d4d7d23be44cf053b83db8c00db668

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e75942b48109b343b797680786bee398f2e811ae0b3f35537a09c40c31d8508e
MD5 963847d8e5177cc50c875c382e4e5c24
BLAKE2b-256 09dea12032344cc087bdcf6051d73adee7c5badaa77f9887db6916612c22ace3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 592ebd33e74a3f6b78f1362d0d1ead4c47bb2517a24b5ccb8aa191cbe43facc9
MD5 5f0b1b64c90c375defa4c65c52dea2b2
BLAKE2b-256 13ab47b2aa2eee9acf02d7c859d83489004f012f93a94b89381a7326f0a913ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 18d1c080713471b5ae2f2763fbef9ff45034642e3b095a176e5463ad7ef32f07
MD5 7d091ed65da0940774fcc9c9cb0e3a4e
BLAKE2b-256 5204bebe5eda4cb6e3507a463bfe6acf845b9cab7d95702bbe5ff8ee8559fc9b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.14.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e83f02b54f76f8e29c4b706bd195bffc491c27971ec6ee5b92debebea5ee406d
MD5 ac07d21123c7e899dba7bff9937fb141
BLAKE2b-256 8afebe9853c67bb898b45f7e2a735210379a4118e7345234f48a4fe18082faf7

See more details on using hashes here.

Provenance

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

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