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.

  2. Create a dedicated Python environment.
  3. From LightWin folder: pip install -e .[test]
  4. 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.12.0.tar.gz (772.6 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.12.0-cp313-cp313-win_amd64.whl (726.9 kB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.12.0-cp313-cp313-musllinux_1_2_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

lightwin-0.12.0-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.12.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

lightwin-0.12.0-cp313-cp313-macosx_11_0_arm64.whl (731.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.12.0-cp313-cp313-macosx_10_13_x86_64.whl (739.6 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

lightwin-0.12.0-cp312-cp312-win_amd64.whl (726.8 kB view details)

Uploaded CPython 3.12Windows x86-64

lightwin-0.12.0-cp312-cp312-musllinux_1_2_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

lightwin-0.12.0-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.12.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

lightwin-0.12.0-cp312-cp312-macosx_11_0_arm64.whl (732.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lightwin-0.12.0-cp312-cp312-macosx_10_13_x86_64.whl (740.8 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: lightwin-0.12.0.tar.gz
  • Upload date:
  • Size: 772.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lightwin-0.12.0.tar.gz
Algorithm Hash digest
SHA256 3746edc6927d288a79143efda715a513ce297777975589662a70889dd1bb090b
MD5 a6eeb91ee06fdafa2606f26a3680347d
BLAKE2b-256 9c64be15d9006d404136f15cdbc3b50c52559d41b7d6d8b7b5838086935142b8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.12.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 726.9 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lightwin-0.12.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6f4fb13cd9ad4a096c7774601a55d98261c479821d88ebd4e4d8c294f4815f5a
MD5 5bbc283296ffba6207f0926182f8702d
BLAKE2b-256 9b9bafe430bc2e614726c8a566fafc8ac5b008ed7dfa90f4ab628ca3ad89e03f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7db1a536acd41e13987e20e547cd8e70708bcb3dd2b8bf62ee42248ddc2264fc
MD5 ba10ec93f1cb3f54d4519e81b3860711
BLAKE2b-256 fc3a0853fdf49f311725585496f808102cc0c4160bab8f71529a2210ff0817ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3fb9d7bc3e52fd024245d2941150856ebee2fe8d8bf3eade5d40f0a154408c4c
MD5 daec4584bf37c496047f0023ce42563c
BLAKE2b-256 7cf909e12141b3262aa41d68bf6026036debd9ca9cbb3025ef719329489b5d7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9387effe5ccae28f4a402a5aa9e9bb8ae19e1e3560e5d14cb4e207438e128f81
MD5 67bce6bf0a418bd396553b2a68370993
BLAKE2b-256 0c2972709111b40090e00b474c69d896d694724da8d0db5745aa3ab547d04ed0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd2e3752d9454b8dc4ca4b954cbe359b7a49622e61a0d5fcabe6fa219955471b
MD5 f4049a17aef1b043eba8d69c9ae2856e
BLAKE2b-256 11adcffd5b535f14c9e562224e62ef4ff527889ccc13dd59851f83f4985f6037

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.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.12.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fa1ba5496644c01f8c95985873a3e28ffd184bc7d51258a70816220c99a114e5
MD5 a04d2ba1d202b158a5320de4ad01f094
BLAKE2b-256 b4e42606d1540a5b99655da880ab4f48f062cf7acff0648bb3d3ed71782c6997

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.12.0-cp313-cp313-macosx_10_13_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.12.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: lightwin-0.12.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 726.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lightwin-0.12.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fa6101013389ca1ac1ac39e2c82f6e69a345f5ebb907fe2d30416b9f4be822d9
MD5 2ef66f05061ec58b5f672cd17c6ee6e3
BLAKE2b-256 eaa56c0631fcac39b4d67a5786b320c56888624a0cd88b01d9560b6b83e47328

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7451d27a86aeb467d3bb096381035cb89ee8c1e27b84f2d5d35e66ffe37d8c97
MD5 f1ae2afb295a343b94dd4e5606477fdb
BLAKE2b-256 a40d8ca7ea822bc0eb1f7380076ffdc0503948e275598e5590489c52f32e4a3b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 132dbe71856ddf256cb8a3be097bb1bd7a1f6eb29da585ca000407d56c072042
MD5 1bff0e0be942076d5284d1d6396f5457
BLAKE2b-256 e75c67de0a5bbf5630832882c9dcd6236090751ec604ac9c703b4ce78c20575d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d7d57313905ec0598a1ce0c4a988a55c3292ade80668dc81759570cd2d328115
MD5 f59921178e3b5b03788d7a34a78095d8
BLAKE2b-256 70d112eec1831794ffc1eb7fcb0be1b6ef3013ea420c1facc608c315edeeb15e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.12.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59544dc397147d51516ab3f9590b3601f7d133d4475df59ed9798302bed62226
MD5 9e3d4ad31d7cad3e2494682070ac3ccd
BLAKE2b-256 464e2f31311e0d9976737826c2765681ddda30e27d6aa621159e9e92d62cea55

See more details on using hashes here.

Provenance

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

File details

Details for the file lightwin-0.12.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for lightwin-0.12.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cb5a29460beec9415af87d4e5047ce62706557ec890023d59503f94014115b82
MD5 34a6b3215cf00fb2fbf802a6ad7e1772
BLAKE2b-256 5486265ceb6d4d5b7e561502f1e586bd85fd36ac6225268b499c6f5aa195edc3

See more details on using hashes here.

Provenance

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

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