xcoll 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xcoll might be problematic. Click here for more details.

Files changed (32) hide show
  1. {xcoll-0.2.1 → xcoll-0.2.2}/PKG-INFO +19 -2
  2. {xcoll-0.2.1 → xcoll-0.2.2}/README.md +8 -1
  3. {xcoll-0.2.1 → xcoll-0.2.2}/pyproject.toml +14 -9
  4. xcoll-0.2.2/setup.py +43 -0
  5. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/__init__.py +1 -1
  6. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/collimators_src/absorber.h +1 -1
  7. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/collimators_src/everest_collimator.h +1 -1
  8. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/collimators_src/everest_crystal.h +2 -2
  9. xcoll-0.2.1/setup.py +0 -28
  10. {xcoll-0.2.1 → xcoll-0.2.2}/LICENSE +0 -0
  11. {xcoll-0.2.1 → xcoll-0.2.2}/NOTICE +0 -0
  12. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/__init__.py +0 -0
  13. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/absorber.py +0 -0
  14. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/base_collimator.py +0 -0
  15. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/collimators_src/base_collimator.h +0 -0
  16. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/collimators_src/invalid_collimator.h +0 -0
  17. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/beam_elements/everest_collimator.py +0 -0
  18. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/colldb.py +0 -0
  19. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/collimator_settings.py +0 -0
  20. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/general.py +0 -0
  21. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/headers/particle_states.h +0 -0
  22. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/manager.py +0 -0
  23. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/__init__.py +0 -0
  24. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/crystal.h +0 -0
  25. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/everest.h +0 -0
  26. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/everest.py +0 -0
  27. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/jaw.h +0 -0
  28. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/materials.py +0 -0
  29. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/scatter.h +0 -0
  30. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/scatter_crystal.h +0 -0
  31. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/scattering_routines/everest/scatter_init.h +0 -0
  32. {xcoll-0.2.1 → xcoll-0.2.2}/xcoll/tables.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xcoll
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Xsuite collimation package
5
5
  Home-page: https://github.com/xsuite/xcoll
6
6
  License: Apache 2.0
@@ -13,6 +13,16 @@ Classifier: Programming Language :: Python :: 3.8
13
13
  Classifier: Programming Language :: Python :: 3.9
14
14
  Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: Programming Language :: Python :: 3.11
16
+ Provides-Extra: tests
17
+ Requires-Dist: numpy (>=1.0)
18
+ Requires-Dist: pandas (>=1.4)
19
+ Requires-Dist: ruamel-yaml (>=0.17.31,<0.18.0); extra == "tests"
20
+ Requires-Dist: xcoll (>=0.2.1,<0.3.0)
21
+ Requires-Dist: xdeps (>=0.1.1,<0.2.0)
22
+ Requires-Dist: xfields (>=0.12.1,<0.13.0)
23
+ Requires-Dist: xobjects (>=0.2.6,<0.3.0)
24
+ Requires-Dist: xpart (>=0.15.0,<0.16.0)
25
+ Requires-Dist: xtrack (>=0.36.5,<0.37.0)
16
26
  Project-URL: Repository, https://github.com/xsuite/xcoll
17
27
  Description-Content-Type: text/markdown
18
28
 
@@ -20,7 +30,14 @@ Description-Content-Type: text/markdown
20
30
 
21
31
  <!---![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xcoll?logo=PyPI?style=plastic) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/xcoll?logo=PyPI?style=plastic)-->
22
32
 
23
- ![GitHub release (latest by date)](https://img.shields.io/github/v/release/xsuite/xcoll?style=plastic) ![GitHub](https://img.shields.io/github/license/xsuite/xcoll?style=plastic) ![GitHub all releases](https://img.shields.io/github/downloads/xsuite/xcoll/total?logo=GitHub&style=plastic) ![GitHub issues](https://img.shields.io/github/issues/xsuite/xcoll?logo=GitHub&style=plastic) ![GitHub pull requests](https://img.shields.io/github/issues-pr/xsuite/xcoll?logo=GitHub&style=plastic) ![GitHub repo size](https://img.shields.io/github/repo-size/xsuite/xcoll?logo=GitHub&style=plastic)
33
+ ![GitHub release (latest by date)](https://img.shields.io/github/v/release/xsuite/xcoll?style=plastic)
34
+ ![GitHub](https://img.shields.io/github/license/xsuite/xcoll?style=plastic)
35
+ ![PyPi](https://img.shields.io/pypi/dm/xcoll?logo=PyPI&style=plastic)
36
+ ![GitHub all releases](https://img.shields.io/github/downloads/xsuite/xcoll/total?logo=GitHub&style=plastic)
37
+
38
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/xsuite/xcoll?logo=GitHub&style=plastic)
39
+ ![GitHub issues](https://img.shields.io/github/issues/xsuite/xcoll?logo=GitHub&style=plastic)
40
+ ![GitHub repo size](https://img.shields.io/github/repo-size/xsuite/xcoll?logo=GitHub&style=plastic)
24
41
 
25
42
  Collimation in xtrack simulations
26
43
 
@@ -2,7 +2,14 @@
2
2
 
3
3
  <!---![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xcoll?logo=PyPI?style=plastic) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/xcoll?logo=PyPI?style=plastic)-->
4
4
 
5
- ![GitHub release (latest by date)](https://img.shields.io/github/v/release/xsuite/xcoll?style=plastic) ![GitHub](https://img.shields.io/github/license/xsuite/xcoll?style=plastic) ![GitHub all releases](https://img.shields.io/github/downloads/xsuite/xcoll/total?logo=GitHub&style=plastic) ![GitHub issues](https://img.shields.io/github/issues/xsuite/xcoll?logo=GitHub&style=plastic) ![GitHub pull requests](https://img.shields.io/github/issues-pr/xsuite/xcoll?logo=GitHub&style=plastic) ![GitHub repo size](https://img.shields.io/github/repo-size/xsuite/xcoll?logo=GitHub&style=plastic)
5
+ ![GitHub release (latest by date)](https://img.shields.io/github/v/release/xsuite/xcoll?style=plastic)
6
+ ![GitHub](https://img.shields.io/github/license/xsuite/xcoll?style=plastic)
7
+ ![PyPi](https://img.shields.io/pypi/dm/xcoll?logo=PyPI&style=plastic)
8
+ ![GitHub all releases](https://img.shields.io/github/downloads/xsuite/xcoll/total?logo=GitHub&style=plastic)
9
+
10
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/xsuite/xcoll?logo=GitHub&style=plastic)
11
+ ![GitHub issues](https://img.shields.io/github/issues/xsuite/xcoll?logo=GitHub&style=plastic)
12
+ ![GitHub repo size](https://img.shields.io/github/repo-size/xsuite/xcoll?logo=GitHub&style=plastic)
6
13
 
7
14
  Collimation in xtrack simulations
8
15
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "xcoll"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "Xsuite collimation package"
5
5
  homepage = "https://github.com/xsuite/xcoll"
6
6
  repository = "https://github.com/xsuite/xcoll"
@@ -17,16 +17,21 @@ include = [ "LICENSE", "NOTICE" ]
17
17
 
18
18
  [tool.poetry.dependencies]
19
19
  python = ">=3.8"
20
- #numpy
21
- #pandas
22
- #scipy
23
- #xobjects
24
- #xdeps
25
- #xpart
26
- #xtrack
20
+ ruamel-yaml = { version = "^0.17.31", optional = true }
21
+ numpy = ">=1.0"
22
+ pandas = ">=1.4"
23
+ xobjects = "^0.2.6"
24
+ xdeps = "^0.1.1"
25
+ xpart = "^0.15.0"
26
+ xtrack = "^0.36.5"
27
+ xfields = "^0.12.1"
28
+ xcoll = "^0.2.1"
27
29
 
28
30
  [tool.poetry.dev-dependencies]
29
- pytest = "^5.2"
31
+ pytest = ">=7.3"
32
+
33
+ [tool.poetry.extras]
34
+ tests = ["pytest", "ruamel-yaml"]
30
35
 
31
36
  [build-system]
32
37
  # Needed for pip install -e (BTW: need pip version 22)
xcoll-0.2.2/setup.py ADDED
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ from setuptools import setup
3
+
4
+ packages = \
5
+ ['xcoll', 'xcoll.beam_elements', 'xcoll.scattering_routines.everest']
6
+
7
+ package_data = \
8
+ {'': ['*'],
9
+ 'xcoll': ['headers/*'],
10
+ 'xcoll.beam_elements': ['collimators_src/*']}
11
+
12
+ install_requires = \
13
+ ['numpy>=1.0',
14
+ 'pandas>=1.4',
15
+ 'xcoll>=0.2.1,<0.3.0',
16
+ 'xdeps>=0.1.1,<0.2.0',
17
+ 'xfields>=0.12.1,<0.13.0',
18
+ 'xobjects>=0.2.6,<0.3.0',
19
+ 'xpart>=0.15.0,<0.16.0',
20
+ 'xtrack>=0.36.5,<0.37.0']
21
+
22
+ extras_require = \
23
+ {'tests': ['ruamel-yaml>=0.17.31,<0.18.0']}
24
+
25
+ setup_kwargs = {
26
+ 'name': 'xcoll',
27
+ 'version': '0.2.2',
28
+ 'description': 'Xsuite collimation package',
29
+ 'long_description': '# xcoll\n\n<!---![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xcoll?logo=PyPI?style=plastic) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/xcoll?logo=PyPI?style=plastic)-->\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/xsuite/xcoll?style=plastic)\n![GitHub](https://img.shields.io/github/license/xsuite/xcoll?style=plastic)\n![PyPi](https://img.shields.io/pypi/dm/xcoll?logo=PyPI&style=plastic)\n![GitHub all releases](https://img.shields.io/github/downloads/xsuite/xcoll/total?logo=GitHub&style=plastic)\n\n![GitHub pull requests](https://img.shields.io/github/issues-pr/xsuite/xcoll?logo=GitHub&style=plastic)\n![GitHub issues](https://img.shields.io/github/issues/xsuite/xcoll?logo=GitHub&style=plastic)\n![GitHub repo size](https://img.shields.io/github/repo-size/xsuite/xcoll?logo=GitHub&style=plastic)\n\nCollimation in xtrack simulations\n\n## Description\n\n## Getting Started\n\n### Dependencies\n\n* python >= 3.8\n * numpy\n * pandas\n * xsuite (in particular xobjects, xdeps, xtrack, xpart)\n\n### Installing\n`xcoll` is packaged using `poetry`, and can be easily installed with `pip`:\n```bash\npip install xcoll\n```\nFor a local installation, clone and install in editable mode (need to have `pip` >22):\n```bash\ngit clone git@github.com:xsuite/xcoll.git\npip install -e xcoll\n```\n\n### Example\n\n## Features\n\n## Authors\n\n* [Frederik Van der Veken](https://github.com/freddieknets) (frederik@cern.ch)\n* [Despina Demetriadou](https://github.com/ddemetriadou)\n* [Andrey Abramov](https://github.com/anabramo)\n* [Giovanni Iadarola](https://github.com/giadarol)\n\n\n## Version History\n\n* 0.1\n * Initial Release\n\n## License\n\nThis project is [Apache 2.0 licensed](./LICENSE).\n',
30
+ 'author': 'Frederik F. Van der Veken',
31
+ 'author_email': 'frederik@cern.ch',
32
+ 'maintainer': 'None',
33
+ 'maintainer_email': 'None',
34
+ 'url': 'https://github.com/xsuite/xcoll',
35
+ 'packages': packages,
36
+ 'package_data': package_data,
37
+ 'install_requires': install_requires,
38
+ 'extras_require': extras_require,
39
+ 'python_requires': '>=3.8',
40
+ }
41
+
42
+
43
+ setup(**setup_kwargs)
@@ -6,4 +6,4 @@ from .scattering_routines.everest.materials import GeneralMaterial, Material, Cr
6
6
  from .manager import CollimatorManager
7
7
  from .colldb import CollimatorDatabase, load_SixTrack_colldb
8
8
 
9
- __version__ = '0.2.1'
9
+ __version__ = '0.2.2'
@@ -31,7 +31,7 @@ void BlackAbsorber_track_local_particle(BlackAbsorberData el, LocalParticle* par
31
31
  double const cos_zL = BlackAbsorberData_get_cos_zL(el);
32
32
  double const sin_zR = BlackAbsorberData_get_sin_zR(el);
33
33
  double const cos_zR = BlackAbsorberData_get_cos_zR(el);
34
- if (abs(sin_zL-sin_zR) > 1.e-10 || abs(cos_zL-cos_zR) > 1.e-10 ){
34
+ if (fabs(sin_zL-sin_zR) > 1.e-10 || fabs(cos_zL-cos_zR) > 1.e-10 ){
35
35
  kill_all_particles(part0, XC_ERR_NOT_IMPLEMENTED);
36
36
  };
37
37
  double const dx = BlackAbsorberData_get_ref_x(el);
@@ -31,7 +31,7 @@ void EverestCollimator_track_local_particle(EverestCollimatorData el, LocalParti
31
31
  double const cos_zL = EverestCollimatorData_get_cos_zL(el);
32
32
  double const sin_zR = EverestCollimatorData_get_sin_zR(el);
33
33
  double const cos_zR = EverestCollimatorData_get_cos_zR(el);
34
- if (abs(sin_zL-sin_zR) > 1.e-10 || abs(cos_zL-cos_zR) > 1.e-10 ){
34
+ if (fabs(sin_zL-sin_zR) > 1.e-10 || fabs(cos_zL-cos_zR) > 1.e-10 ){
35
35
  kill_all_particles(part0, XC_ERR_NOT_IMPLEMENTED);
36
36
  };
37
37
  double const c_aperture = EverestCollimatorData_get_jaw_L(el) - EverestCollimatorData_get_jaw_R(el);
@@ -32,14 +32,14 @@ void EverestCrystal_track_local_particle(EverestCrystalData el, LocalParticle* p
32
32
  double const cos_zL = EverestCrystalData_get_cos_zL(el);
33
33
  double const sin_zR = EverestCrystalData_get_sin_zR(el);
34
34
  double const cos_zR = EverestCrystalData_get_cos_zR(el);
35
- if (abs(sin_zL-sin_zR) > 1.e-10 || abs(cos_zL-cos_zR) > 1.e-10 ){
35
+ if (fabs(sin_zL-sin_zR) > 1.e-10 || fabs(cos_zL-cos_zR) > 1.e-10 ){
36
36
  kill_all_particles(part0, XC_ERR_NOT_IMPLEMENTED);
37
37
  };
38
38
  double const c_aperture = EverestCrystalData_get_jaw_L(el) - EverestCrystalData_get_jaw_R(el);
39
39
  double const c_offset = ( EverestCrystalData_get_jaw_L(el) + EverestCrystalData_get_jaw_R(el) ) /2;
40
40
  double const c_tilt0 = asin(EverestCrystalData_get_sin_yL(el));
41
41
  double const c_tilt1 = asin(EverestCrystalData_get_sin_yR(el));
42
- if (abs(c_tilt1) > 1.e-10){
42
+ if (fabs(c_tilt1) > 1.e-10){
43
43
  kill_all_particles(part0, XC_ERR_INVALID_XOFIELD);
44
44
  };
45
45
  int const side = EverestCrystalData_get__side(el);
xcoll-0.2.1/setup.py DELETED
@@ -1,28 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from setuptools import setup
3
-
4
- packages = \
5
- ['xcoll', 'xcoll.beam_elements', 'xcoll.scattering_routines.everest']
6
-
7
- package_data = \
8
- {'': ['*'],
9
- 'xcoll': ['headers/*'],
10
- 'xcoll.beam_elements': ['collimators_src/*']}
11
-
12
- setup_kwargs = {
13
- 'name': 'xcoll',
14
- 'version': '0.2.1',
15
- 'description': 'Xsuite collimation package',
16
- 'long_description': '# xcoll\n\n<!---![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xcoll?logo=PyPI?style=plastic) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/xcoll?logo=PyPI?style=plastic)-->\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/xsuite/xcoll?style=plastic) ![GitHub](https://img.shields.io/github/license/xsuite/xcoll?style=plastic) ![GitHub all releases](https://img.shields.io/github/downloads/xsuite/xcoll/total?logo=GitHub&style=plastic) ![GitHub issues](https://img.shields.io/github/issues/xsuite/xcoll?logo=GitHub&style=plastic) ![GitHub pull requests](https://img.shields.io/github/issues-pr/xsuite/xcoll?logo=GitHub&style=plastic) ![GitHub repo size](https://img.shields.io/github/repo-size/xsuite/xcoll?logo=GitHub&style=plastic)\n\nCollimation in xtrack simulations\n\n## Description\n\n## Getting Started\n\n### Dependencies\n\n* python >= 3.8\n * numpy\n * pandas\n * xsuite (in particular xobjects, xdeps, xtrack, xpart)\n\n### Installing\n`xcoll` is packaged using `poetry`, and can be easily installed with `pip`:\n```bash\npip install xcoll\n```\nFor a local installation, clone and install in editable mode (need to have `pip` >22):\n```bash\ngit clone git@github.com:xsuite/xcoll.git\npip install -e xcoll\n```\n\n### Example\n\n## Features\n\n## Authors\n\n* [Frederik Van der Veken](https://github.com/freddieknets) (frederik@cern.ch)\n* [Despina Demetriadou](https://github.com/ddemetriadou)\n* [Andrey Abramov](https://github.com/anabramo)\n* [Giovanni Iadarola](https://github.com/giadarol)\n\n\n## Version History\n\n* 0.1\n * Initial Release\n\n## License\n\nThis project is [Apache 2.0 licensed](./LICENSE).\n',
17
- 'author': 'Frederik F. Van der Veken',
18
- 'author_email': 'frederik@cern.ch',
19
- 'maintainer': 'None',
20
- 'maintainer_email': 'None',
21
- 'url': 'https://github.com/xsuite/xcoll',
22
- 'packages': packages,
23
- 'package_data': package_data,
24
- 'python_requires': '>=3.8',
25
- }
26
-
27
-
28
- setup(**setup_kwargs)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes