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.

  1. Create a dedicated Python environment.
  2. From LightWin folder: pip install -e .[test]
  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 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.5.tar.gz (786.3 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.5-cp313-cp313-win_amd64.whl (736.0 kB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.13.5-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.5-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.5-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.5-cp313-cp313-macosx_11_0_arm64.whl (747.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.13.5-cp312-cp312-win_amd64.whl (735.8 kB view details)

Uploaded CPython 3.12Windows x86-64

lightwin-0.13.5-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.5-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.5-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.5-cp312-cp312-macosx_11_0_arm64.whl (747.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: lightwin-0.13.5.tar.gz
  • Upload date:
  • Size: 786.3 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.5.tar.gz
Algorithm Hash digest
SHA256 134414a081c41eb5197be11a92033334dfddf05122bbf46a65fc01784a409f72
MD5 683eebd5bfa938e11b190e8800dddbfa
BLAKE2b-256 dea507f191d10082e95194c0eb483bc86fff7aeb982b19d08a949bea16c13e86

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.13.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 736.0 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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 30281a42416f014ab1cc04b6f9118a6e454f3968b9486ac9eef08978bb93ea52
MD5 e25570b7ea74b095438a15a0e3657278
BLAKE2b-256 d116f31da9bfa47d7d573d3831380a4c26888eeba33a2da1c2c1dfefcc79e599

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 801c9ff372c0d41e8da5ccce51efbca6065fe8ca8e4383df88111037948ad318
MD5 3db5c86e62849c01a0919e88738695a7
BLAKE2b-256 eae0693aa30001c44ff0cfeb237990e0aa52588eeb973789461a6ef30f7f845a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1a83aa32e43d67a707d2266a8bc430a83a68e0a7c4ed4d46caf69cd84a100e4
MD5 b01677ab4603592de3f24536e472dd52
BLAKE2b-256 e98dbfc4b5fbd3f1b69d2feacaa13dff2e843cd88665ecf1c4f9e2a4d2caa427

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1aefb1a622b2417b20318c190523cbc4af0da787b273c611e02ac7d11994d362
MD5 91b85feb69ba2fe78aaaee5a427f234f
BLAKE2b-256 267c3b5e6a251c893f8ec7957005d821036bc522d01a42e702592fb28d230f2d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 195ee8ec22bf36b5d967ae4d00f3022b13112e1a9e738aeec16d011d01cc856f
MD5 bc6927a78a6ab6551052ddff8b554b50
BLAKE2b-256 145cabb88d132fbc97021fc577d418d3cd62d693dbce27ca82ad5585f035b524

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.13.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 735.8 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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b9ee79456cc22a48d84cb04201d926eac4f7ff33587f9ea9f3a28717b5db2607
MD5 c874ffe42c5873919b800eb13a722f9f
BLAKE2b-256 dd92a2929965547e8921cfaaad5b130790cf630301b44236f64218c4b71b95c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 edb81510a0ad5e221b51e831cc6d224da1ae399270630a15ac0d930f7d2086d1
MD5 31e0c6461c735479434477e981f65403
BLAKE2b-256 1a27a6c3bc2fe2205980179bf9271f51ff3db2602e058137775d6d7b22537747

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 deac0260b80366022be1dac88f2122816fb48a278b0be646e32b1ca4d4334c96
MD5 f0328901b100c738bc31182b488f0e06
BLAKE2b-256 53bbae8b739fcb463fb681378cda0128dba6351be48be11b001c51159e5719fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3a5d8d538e9414f6d5d23cb40867dd4af76de6891c62cf88349134791922c77c
MD5 b00c9c23c93deb2c03b5486614631df2
BLAKE2b-256 87b1e976bc00b2aab7bd7f35a5e94f735322c04ab1bd096a161bc18071475a53

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29718ddb5cbe81aa8533b4522e9b2215810971fcb54ac9f6d57629e9e426d2c2
MD5 64f1d0d6f62382768eee8f9a8737fe96
BLAKE2b-256 0f796cef263314cb3d696d3dee4a56e2f017dba16cd043b97812ae4670dd5f0f

See more details on using hashes here.

Provenance

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