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.4.tar.gz (782.8 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.4-cp313-cp313-win_amd64.whl (732.5 kB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.13.4-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.4-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.4-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.4-cp313-cp313-macosx_11_0_arm64.whl (743.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.13.4-cp312-cp312-win_amd64.whl (732.4 kB view details)

Uploaded CPython 3.12Windows x86-64

lightwin-0.13.4-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.4-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.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (744.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: lightwin-0.13.4.tar.gz
  • Upload date:
  • Size: 782.8 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.4.tar.gz
Algorithm Hash digest
SHA256 d99807a2918353e3c1cf21cf7871b42394e1050378c00cfa51b920d8700d7b62
MD5 d72c0f31ebf1da3aa56d238eb63ea403
BLAKE2b-256 186b09b6b2f6b4d21a50608d6a0bee398196a55ba4aac25052677c25db7046e5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.13.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 732.5 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.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c3d5f56b735c117bcfcc9b6ecdfd4bcdcc2421de8f56409165277bf8db71352d
MD5 7fcd9c1ad1f4e065f01d65eaf7fa510c
BLAKE2b-256 ca0372f1d4dcb7c57e255d55e503d564c006f5445e5a3734f6730beb8b457a68

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 547f14f384de6308fcede88eb64f2533653e051d1a512e721c6b82a459565960
MD5 499f4619eca9a960b7d9dfcf59fd37c2
BLAKE2b-256 63b0e0ddb08de5cf6ae477dcb1a4a0710a7757941f854916d25bed87cd54d27d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d731eb5383c4b4e7f4618b8f62fb84a0ee50a4b6f574b625dd3b9dfd367340f4
MD5 65ec8f4bbd9b842164d8c412a6a8ff55
BLAKE2b-256 002b71bbd1c4c1304ddec8785af277994b59a89f5a7105f679f3095bcacdc60d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5d470778c3fc2da9e98cfb398d122e6ee6972a9f3622747fdb20d54ca1eca263
MD5 eb584d4d3404e75120a0d9ac2dae33d0
BLAKE2b-256 e2665e25dc056b9f0162de66d176368a73472c0db4b7f7a6286d55e649e96fbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d5f45cb009a2964cc6adbe28ce4db509a076197c92b2b1fef8e0a7bcc86e85f
MD5 754169a134e33eccd39fd551e0cd1b15
BLAKE2b-256 0a53c7338beef97216fa0a63ef4fbd91e4d8a8795053b2f02b5f7bfe88dc4e7d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.13.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 732.4 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.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5236cef6d0fca8e524271e4668483c18850358305fa675ca2461873d37588104
MD5 b9c5b2fbbb206954421387428e61b840
BLAKE2b-256 5ed9268f5b696977e5bd50c406e5c1aa5d22af465b78a453e347c30d22ffa1a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2c5586d07c46bf3a3e4abb42fea9943e50e8303458db55e6ed8e037faa925549
MD5 9c9fe86e8df2c177b23bdfbe9d5f4f71
BLAKE2b-256 e5e297f58fbe968f22c4ebc253ee0ea366ad5b37bd7eea189c8b6467e4b4cba1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d5ac3ec5aa936d6d8def57ef35284a6b96d0d0b6997d957364b50612f14f8248
MD5 a665d4b61e40306ab6374b767249ce58
BLAKE2b-256 963ab10a20db416d6ac28e5bc576e2aee85e6e043359529001c9585495a9eb8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e51185374b3f8a50982b03a395c99ad20ca9ec09074aa3df0732b059b07b7cee
MD5 62af4730ce4878f01e484cfb7c96d27e
BLAKE2b-256 329d60103ae534c92a01571d966b52b2b8af7a9a5f33619b6e6b06cadda5f051

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.13.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ee5b27ab092c262a5c8fef23e8d7f7594b8c8edfbaecc5a113f17ce8adc03db
MD5 6af2a90ef25560966e6c4c3fa2c25750
BLAKE2b-256 7eb17ef99f02826b4575a4672013cde3abd8974004b2a4a828bd6b8d1300f857

See more details on using hashes here.

Provenance

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