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.16.1.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.16.1-cp314-cp314-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

lightwin-0.16.1-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.16.1-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.16.1-cp314-cp314-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

lightwin-0.16.1-cp313-cp313-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.13Windows x86-64

lightwin-0.16.1-cp313-cp313-musllinux_1_2_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

lightwin-0.16.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

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

lightwin-0.16.1-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.16.1-cp313-cp313-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lightwin-0.16.1-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

lightwin-0.16.1-cp312-cp312-musllinux_1_2_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

lightwin-0.16.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

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

lightwin-0.16.1-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.16.1-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.16.1.tar.gz.

File metadata

  • Download URL: lightwin-0.16.1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lightwin-0.16.1.tar.gz
Algorithm Hash digest
SHA256 43e9de65b1eca9e1263c284a4840049a5737e04b17b8c5d9b28f389b62d6c526
MD5 dd77ec1df38c38ddda0be4adb89c0c81
BLAKE2b-256 d9c60bb2b7d40cbb00b634bd2f9078222f71387c4ca835bdf6dce48436818980

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.1-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.12

File hashes

Hashes for lightwin-0.16.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 58cbdc414ceba3e67092cb8d2a2836c4268c6f03b29aac2b5f7197fe1b22c4a7
MD5 fc510a5a6aaa1a347e64ae665a7470ce
BLAKE2b-256 cb935851c90fb61db305ba0ee8b6f9fecc050606e1a2b2f321fa549d48c9343e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 853cbdbe413b154c2111d724d53112d81d5a130d84cb386ab9565f3877e97d2e
MD5 fecfd41812bba90c0401ff975cd3ab4f
BLAKE2b-256 5d0bd551261c39ee2a9f154cabf2cede7793bbc64252673ea4eb057685d36ee0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ec605b37daae2de967ec37b5b8e9692160db4d3d943ae8d70794ce02a985cb8
MD5 7586103a87618ab7977cc86e263b6080
BLAKE2b-256 0748c38777bc526081852735cc0c47604d8f9712671766170cf15b6904ae7981

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.1-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.16.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5076bca83cdcc3eae79c21cebfc4db8bbe01bf3d133eb8120ef5d331e086f45a
MD5 f4934f8a7c5e4ead1f9214be45a8af8e
BLAKE2b-256 44fb8b9bbdd3f5126fb3b24ea05f6d66868a7315ad35093566a5234d33e090f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightwin-0.16.1-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.16.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lightwin-0.16.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33e3298e629e00e6fb1d830025b571ea926f1fa09c07f4eceb8f8e0b3e7ec8c1
MD5 e1723c8d0a5137241588d29c6b819ca3
BLAKE2b-256 7a41e7dde4b2e45466b12e2f9c41157a286b9fd6127b455298f8e97634a9d773

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lightwin-0.16.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f5d9ca988a43be151930ef25d217d3597db0f02cc27063abb52bdcf477dcfaae
MD5 438c7465456ca31b1143e455f6928941
BLAKE2b-256 55f1684fc8d9c74d70d96d79ef22fb565db0410b5dcdb85eb641d255e29937aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 757440d7a3ec35f574c0da157ac7be235d3e99da2e1fa6ab56f363f03413b638
MD5 972f39db1eb831f1e8dc2752684afd4d
BLAKE2b-256 3eb8adefe94ce928e84e98b4f9c33503bb53fad942c054e4ed40eeabf51faccd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 23b1d309b7686fc2a3fb2ca10b9f3f14532b9c3f58e4f36f9235cc9de6b51845
MD5 967cc261232d99d0dacd33888eb5353e
BLAKE2b-256 60305e439fd0a5ddd19113eb4cbb8777b7f9b0d32f7a0497b136565074ddb1be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0ea57247452ce9ccd6048902110a0848dcdfa3102a94cad56f68071af4077499
MD5 87a3a8f1205cca578065eb697b2eeb0b
BLAKE2b-256 5e8133b5a21abd6519fa7b1b77b0eb089e9c246afbd7cf33918534f97081b0f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9014cf1e317488ca8033ddc1e89a9db16a649e1b1d71eec366490e1c5fd7ede
MD5 1b57de47755b69945a020c8c3eba61be
BLAKE2b-256 2048538ace706a14eccc3cc2270b09b81b3ca4135ebbd14a2e701424800059f8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lightwin-0.16.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lightwin-0.16.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 517760ad6af5d6cb84e66c82141eeecff230d7f9b691f6678b7ed639707a37fe
MD5 e87093dceacf3ba20d507225c0d3614a
BLAKE2b-256 556b4460d4e393dbbdf5fd68a0fb33f36817c00326e3e9f90758f9145f973484

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 61a940cdce64d95f6a019b6547085009f5a19875070aabefa7b566bd80264c12
MD5 0609d0e1fd014ec61888988f7bcd2439
BLAKE2b-256 1210bc9f154e97a2e590b14b38eda631b3709732b1da3a43a473a9208564346a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e84d857394e6ba09fcfcc521b7aeaabca524ffd07c39ab67f152c2af7dcd1115
MD5 70611982c4e6465acc9a73f052f11daa
BLAKE2b-256 05348de3b5cc8f1a156f341c895296e11d5ca77d011062b4114afe1d1a54f305

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e7031cd71b7ca4217e86639113c2d1a9a52ce92409e0e0e1c95a9fe0be77e2d7
MD5 3dbec7af57021c5a2d7a6aabfdae36d8
BLAKE2b-256 5cb86eb3f9c7e246da55add2db432afb9198f0cf9596ded8a0d09b04d330dd6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for lightwin-0.16.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e302436223c5ec715a8f525d78473c0c66291d97a501625f876b4c8374c68c3
MD5 b35abbd09bd4a697411f6336242bf9a1
BLAKE2b-256 1d9017e3fc5b8c06f03bccaaaed286ed87da52c71b1ca97a635726cb0038cf25

See more details on using hashes here.

Provenance

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