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

Uploaded CPython 3.13Windows x86-64

lightwin-0.15.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.15.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.15.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.15.0-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

lightwin-0.15.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.15.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.15.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.15.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.15.0.tar.gz.

File metadata

  • Download URL: lightwin-0.15.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.15.0.tar.gz
Algorithm Hash digest
SHA256 9869c285a1190754ee9fc9b17286627a27e1e7d5a1118bbd5a4964ce202c51e4
MD5 1ccc4314b8ad74b58d364536cf2d426a
BLAKE2b-256 4e747a495e5ba96c5642bfc1e4f58e254a8f92d918c7d1e93d9956201a055974

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.15.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.15.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 73221841d75fdb61c9f098d02a75f273818717f867651601c1c270f63ac1f865
MD5 2be2e8d3750345f42a636d7e11977a12
BLAKE2b-256 8499cc776a9e605253cbcb6d04fb397f88959fa15632e766a304084b1bdb15ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8ff491b739e9e0ca7fc602a18c88204f491a8bb34f579f189b4813bd5d7f8c14
MD5 cfe7ec7cab9529ea681ae37624fa4ea4
BLAKE2b-256 1b5cde17189cd193b10fcd0ae901ed54adafa39ce4d3681b4d523b2f530e9730

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f739419e00e0318675bebf982b3dd3890e4b9eeb39517ed5874ef8caab3c1eb3
MD5 bb5cddca54ba43ed1792312d2b50813a
BLAKE2b-256 84b837a25a1a1ccb972a5731fddf050b417d7e000098e1e8f31deea40c5be438

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 56acd3fbd45012a113965dc5a5826b18e385155c3f3a732808a1e7bbaa06ed42
MD5 b75a60d36d5667584cd874ab9ed1ac90
BLAKE2b-256 990cdc750792350e3708278e935db34b5465cffd3b81a1079f4e7a813f770df8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64fcb318f378e7281c0fd957c3cc6dafeb0b49c507397504221eec0391da651b
MD5 1dc9d5c3ce175a1d01f5868ffaf91415
BLAKE2b-256 0d1ae90a320353107486c32414b86469930d69eb0445cbf4bc90933795f5ce63

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.15.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.15.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2929060cc6df4eadcf414901be82d01c60f0529d789e10931d32510d67e657fb
MD5 f223e1dbb68f0cb6489e42cd1aa91ef0
BLAKE2b-256 de12f25f3f7e4aac1fac8d9a4bc77c680e82302ba5587cbcd51ba9169248c16c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 08488e1183dd71ca5017a428dd4ee4e331768c312e93bc06986e6aff4dba8d6a
MD5 39c2d6a95182822d9f10e75fbdfd1030
BLAKE2b-256 f17df7c3b254d0241fbfec717f8785eb1605055807f8bdb13e6911d238a1d70a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f08efc8143ade4743330d2f1c61edeba311063436f2d5285b10b6d9f132bbab2
MD5 4607a0205164502dfcce1d1b9124ddf8
BLAKE2b-256 1686c79c81a8c25da62cbeba5f90c1d631c6bee137a88ad315469c78fdf05b58

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8610c7fb30d7644e41d88fe62583a1187a93fd6cff633cdbb389d07d0ab1d9b9
MD5 eaebe0ac58e0972bf2eddcf809644668
BLAKE2b-256 004f23cd625411b352d7d2aab5b83e7e58f203aba34a1a94979304464e81bcd2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1f75f9989d128e6b2fd06191cbeb0e53c0f315f2701d323f497faa331dc3022
MD5 306e1dfca28d1eda2c22ae360704f28c
BLAKE2b-256 e18b07b9743388bfc67cc3cfdfde1c06237c56454df1e19e94ad3cb52cece5fa

See more details on using hashes here.

Provenance

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