Xsuite collimation package
Project description
xcoll
Collimation in xtrack simulations
Description
Getting Started
Dependencies
- python >= 3.8
- numpy
- pandas
- xsuite (in particular xobjects, xdeps, xtrack, xpart)
- to use K2:
- gfortran
Installing
xcoll
is packaged using poetry
, and can be easily installed with pip
:
pip install xcoll
For a local installation, clone and install in editable mode (need to have pip
>22):
git clone git@github.com:xsuite/xcoll.git
pip install -e xcoll
Using K2
To be able to use the K2 scattering algorithms, these need to be compiled from source. There is a small script that does this (you can ignore the warnings):
cd xcoll
./compile_K2.sh
This installs a shared library in the package that is tailored to your current python installation.
Without compilation, K2 Collimators can be installed in a Line
, but not tracked.
Example
Features
Authors
Version History
- 0.1
- Initial Release
License
This project is Apache 2.0 licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xcoll-0.1.2.tar.gz
.
File metadata
- Download URL: xcoll-0.1.2.tar.gz
- Upload date:
- Size: 229.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.12 Linux/4.18.0-408.el8.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6186794be3e350852735d429acbd99fee17608188e3b78a02af579fd3156c074 |
|
MD5 | 4d6fb6e7d3f4a26cd1f1c16568f1a211 |
|
BLAKE2b-256 | 6382b92a3d215e7646a7c0ac13baac908f6b4a08414accfe6cdf827001cf0d86 |
File details
Details for the file xcoll-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: xcoll-0.1.2-py3-none-any.whl
- Upload date:
- Size: 259.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.12 Linux/4.18.0-408.el8.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3295d8a249976fe9d8f81d6a0fe1215a9e218a7fd9ae20c8704b6746a78c7615 |
|
MD5 | b7540847d73e9c6f848618c42f2df0ff |
|
BLAKE2b-256 | 232cff1bba4f0f147bc416c4aa564fb124c7cae3149e073d6ed20144584fc0c6 |