Skip to main content

Automatically compensate cavity failures in linacs

Project description

PyPI - Python Version 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.2.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.2-cp314-cp314-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.14Windows x86-64

lightwin-0.15.2-cp314-cp314-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

lightwin-0.15.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

lightwin-0.15.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

lightwin-0.15.2-cp314-cp314-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

lightwin-0.15.2-cp313-cp313-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.15.2-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.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

lightwin-0.15.2-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.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

lightwin-0.15.2-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.2.tar.gz.

File metadata

  • Download URL: lightwin-0.15.2.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.2.tar.gz
Algorithm Hash digest
SHA256 aaf4a51e7bb63a767a3ca810fc4bbaa52e1296a844b299d53b5d3d7f0a2f8ad0
MD5 12b665e8f28825328c66b8926d1d906a
BLAKE2b-256 d925d06d85a381b67f4f93ff336eb479ccf72647dcbbe5403ca8d3b50c448010

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2.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.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.15.2-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.14, 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.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 9e3acdaa69f541ddeed5e8f7f2bc503725191d1a88110d4580e2935b20407c6e
MD5 af42ad2ecad5054fbe757cf03240c221
BLAKE2b-256 f8b49c2999d216cbb297fb114654c7c1828a02762d8581bd0d2bb6280d548ba2

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp314-cp314-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.2-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f6e8efcdb8e0ba3ec15c859bc3ced6c12f7bef885aa5ec5591169e13cb9cec73
MD5 4a3f435c588e9e8f6c8aadb0e92b3bfa
BLAKE2b-256 8c6d243c1d46cd3f6ebefd7cd833a7e75b227c2d304c8ef67b6ddb19b2b0fb95

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp314-cp314-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.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3f46ff23d2169909de21a77d02723f75f69d0e5c1add4a2cba9d6d49a45742fe
MD5 61b8e20778e68712d26d27de6a0d2583
BLAKE2b-256 0fda01717d27a457c1560b0208a9a84315d5acc399a7f2cef5f26371005d63d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_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.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 530f803d1fb78c2a68c92cd72e87d570699ac622005aef519b844a217c79bebd
MD5 a0cceede98cb9a6b2faca3612504d1ad
BLAKE2b-256 777e3a51e044943589518a194c21519e1170ddefb785e95159702e863fb2e689

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_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.2-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fff349d3f920898a9d059f31d1367e0a8541918656dd53ec57b26ae176d79866
MD5 e6b8984944bbb1c14c6034c5407be4bc
BLAKE2b-256 d06c334caf7bf41758a2f2c247d52b1c67c5593e8c4553882cce6a508a4135d2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.15.2-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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2efedc640bd1d13c4e0a2b29c51623e730060071fea8484dc54862b07cfe83cb
MD5 b06e8f5adfb4a72fdb56745a12ada1d9
BLAKE2b-256 698b7a8ba20b495371dd2975c70900d8e9a2b24290dc5839b098d0237b9f91e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0360da16322a229854871d1957a6345e9dcb7db15a8cc688784901aeb23c9dfd
MD5 3e0b096443f2566d46ba96ba8ef511af
BLAKE2b-256 f42381870c5e3da1c9270fc38a4746ebeaf439942c6c9934999c6a0464313301

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2ee5ed10164a7ea84340377bb6df547cf834c559bd864202fd434fada0f6f62b
MD5 ebbe9f8528e8c9e15201f4f68202d485
BLAKE2b-256 18a53ef10a06767b842da751c93e903b2e0eb9cb61ccec9ccc2239da6241e8b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_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.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 08bb69e3d1c98f69e802305f97ac2e2a1b6caffbfc60fe6c177041c958f5cc4d
MD5 3a32705f950987cff0626451b41cc709
BLAKE2b-256 558d31a8454485632281d3837b1b6d68d5a285425b37b9cafce85950efd21da9

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_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.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d1dc6e3d55685320ba8d6f388c8a4a8a7b2c412ab989ed0fd6a62e9d5799586
MD5 4ac0057f981b8ccb9bd10e4474733566
BLAKE2b-256 60a9b0301211881bc885919a00ab756fb9495867c5c111393306ca769bd35c2e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.15.2-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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3619ac363640d7f0ffd98a0b517177e83938d516c230978e08de7d7ae1dbbd29
MD5 21027fdb877851daffa3e5b58d59bd16
BLAKE2b-256 9f1ac88b973c4f6e2282c30510481ca077ad2d3c1ed586de7ec82deb473ab5f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5b5416f54229ed46e0841e48fdd499fb168b1835e902383c901a7ef9985b3e3d
MD5 6c0f60dcd0e4c74f4f5090426f6e9242
BLAKE2b-256 f0be74f23de8fe093a961f94d4f5d0cfaba20ea66a2980f981538fffda36f5ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.15.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 909e7c674530cde344384e675b3387d2455eb6f12812b84feeeb389cb6887e6f
MD5 4190cd558de69ea2dfbc60c593925aba
BLAKE2b-256 09b6ad7766f89cbb92d4ad60fd03d32b7094748ff0d68bd09bebf80635b83c7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_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.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 99cc1bb136fd9906cf06cfe441b9bdeb7d0406c529a843cfb52210a064e8497f
MD5 1ad94bbc74074697b63b964f09de7628
BLAKE2b-256 446ee964453c5b481f5f30cbb4803abf1da9c8cffeb1309bbad07857b3d880c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.15.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_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.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.15.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 36750dcd331cc943c74ec7032be03604712c5a33706446c38fe15c34c005ade7
MD5 c0a7c09cbe82a758e647ef2dd7416162
BLAKE2b-256 f9608dba19231b4e8bd3a27dfdad5fd13c0c592ce1361511837d6de968e0a911

See more details on using hashes here.

Provenance

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