xfields 0.25.0__tar.gz → 0.25.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.
- {xfields-0.25.0 → xfields-0.25.2}/PKG-INFO +1 -1
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_ibs_equilibrium.py +1 -1
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_slicer.py +3 -3
- xfields-0.25.2/xfields/_version.py +1 -0
- xfields-0.25.2/xfields/prebuilt_kernel_definitions/__init__.py +7 -0
- xfields-0.25.2/xfields/prebuilt_kernel_definitions/element_inits.py +37 -0
- xfields-0.25.2/xfields/prebuilt_kernel_definitions/element_types.py +16 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields.egg-info/PKG-INFO +1 -1
- {xfields-0.25.0 → xfields-0.25.2}/xfields.egg-info/SOURCES.txt +3 -0
- xfields-0.25.0/xfields/_version.py +0 -1
- {xfields-0.25.0 → xfields-0.25.2}/LICENSE +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/MANIFEST.in +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/README.md +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/pyproject.toml +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/setup.cfg +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/setup.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_alpha_pi_setter.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeam2d.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeam3d_part1.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeam3d_part2.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeam_pic.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeamstrongstrong2d.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeamstrongstrong2d_pi.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeamstrongstrong3d.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beambeamstrongstrong3d_pi.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beamstrahlung.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_beamstrahlung_pic.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_bhabha.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_cerrf.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_compressed_profile_interp_result.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_constant_charge_slicing.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_electroncloud.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_electronlens_interpolated.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_element_with_slicer_filling_scheme.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_ibs_growth_rates.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_ibs_kicks.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_iptocp_strongstrong.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_lumi.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_lumi_pic.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_mean_std.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_profiles.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_spacecharge.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/tests/test_temp_slicer.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam2d.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam3d.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam3dpic.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam2d.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam3d.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam3d_methods_for_strongstrong.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam3d_ref_frame_changes.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam3d_transport_sigmas.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeampic_methods.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/electroncloud.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/electroncloud_src/electroncloud.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/electronlens_interpolated.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/electronlens_src/electronlens_interpolated.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/element_with_slicer.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/spacecharge.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/spacecharge_src/spacecharge3d.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/spacecharge_src/spacechargebigaussian.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/temp_slicer.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/waketracker/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/waketracker/convolution.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/waketracker/waketracker.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/beambeam_config_tools/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/beambeam_config_tools/_madpoint.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/beambeam_config_tools/config_tools.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/beambeam_config_tools/orbit_dependent_configuration_tools.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/electroncloud_config_tools.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/spacecharge_config_tools.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/bigaussian.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/bigaussian_src/bigaussian.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/bigaussian_src/bigaussian_fieldmap.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/bigaussian_src/compute_gx_gy.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/bigaussian_src/faddeeva.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/bigaussian_src/faddeeva_cernlib.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/bigaussian_src/faddeeva_mit.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/interpolated.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/interpolated_src/central_diff.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/interpolated_src/charge_deposition.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/interpolated_src/cubic_interpolators.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/interpolated_src/linear_interpolators.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/interpolated_src/tricubic_coefficients.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/tricubicinterpolated.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/general.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/beamstrahlung_spectrum.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/beamstrahlung_spectrum_pic.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/bhabha_spectrum.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/compressed_profile.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/compute_slice_moments.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/constants.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/particle_states.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/power_n.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/headers/sincos.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/ibs/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/ibs/_analytical.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/ibs/_api.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/ibs/_equilibrium.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/ibs/_formulary.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/ibs/_kicks.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/longitudinal_profiles/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/longitudinal_profiles/coasting.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/longitudinal_profiles/qgaussian.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/longitudinal_profiles/qgaussian_src/qgaussian.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/slicers/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/slicers/compressed_profile.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/slicers/slicers_src/uniform_bin_slicer.h +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/slicers/uniform.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/solvers/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/solvers/base.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/solvers/fftsolvers.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/test_support/__init__.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields/test_support/temp_makepart.py +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields.egg-info/dependency_links.txt +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields.egg-info/requires.txt +0 -0
- {xfields-0.25.0 → xfields-0.25.2}/xfields.egg-info/top_level.txt +0 -0
|
@@ -154,7 +154,7 @@ def test_equilibrium_vs_analytical_no_constraint(
|
|
|
154
154
|
xo.assert_allclose(
|
|
155
155
|
result.eq_sr_ibs_gemitt_y,
|
|
156
156
|
result.gemitt_y[0] / (1 - result.Ky[-1] / tw.damping_constants_s[1]),
|
|
157
|
-
rtol=1e-2,
|
|
157
|
+
atol=5e-7, rtol=1e-2,
|
|
158
158
|
)
|
|
159
159
|
# Check the longitudinal equilibrium emittance
|
|
160
160
|
xo.assert_allclose(
|
|
@@ -22,11 +22,11 @@ def test_slicer_zeta(test_context):
|
|
|
22
22
|
slicer_2 = xf.UniformBinSlicer(_context=test_context,
|
|
23
23
|
zeta_slice_edges=zeta_slice_edges)
|
|
24
24
|
xo.assert_allclose(slicer_0.zeta_centers,
|
|
25
|
-
zeta_centers)
|
|
25
|
+
zeta_centers, atol=1e-15)
|
|
26
26
|
xo.assert_allclose(slicer_1.zeta_centers,
|
|
27
|
-
zeta_centers)
|
|
27
|
+
zeta_centers, atol=1e-15)
|
|
28
28
|
xo.assert_allclose(slicer_2.zeta_centers,
|
|
29
|
-
zeta_centers)
|
|
29
|
+
zeta_centers, atol=1e-15)
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
@for_all_test_contexts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.25.2"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# copyright ############################### #
|
|
2
|
+
# This file is part of the Xfields package. #
|
|
3
|
+
# Copyright (c) CERN, 2025. #
|
|
4
|
+
# ######################################### #
|
|
5
|
+
|
|
6
|
+
from .element_types import DEFAULT_XFIELDS_ELEMENTS
|
|
7
|
+
from .element_inits import XFIELDS_ELEMENTS_INIT_DEFAULTS
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# copyright ############################### #
|
|
2
|
+
# This file is part of the Xfields package. #
|
|
3
|
+
# Copyright (c) CERN, 2025. #
|
|
4
|
+
# ######################################### #
|
|
5
|
+
|
|
6
|
+
import numpy as np
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
XFIELDS_ELEMENTS_INIT_DEFAULTS = {
|
|
10
|
+
'BeamBeamBiGaussian2D': {
|
|
11
|
+
'other_beam_Sigma_11': 1.,
|
|
12
|
+
'other_beam_Sigma_33': 1.,
|
|
13
|
+
'other_beam_num_particles': 0.,
|
|
14
|
+
'other_beam_q0': 1.,
|
|
15
|
+
'other_beam_beta0': 1.,
|
|
16
|
+
},
|
|
17
|
+
'BeamBeamBiGaussian3D': {
|
|
18
|
+
'slices_other_beam_zeta_center': np.array([0]),
|
|
19
|
+
'slices_other_beam_num_particles': np.array([0]),
|
|
20
|
+
'phi': 0.,
|
|
21
|
+
'alpha': 0,
|
|
22
|
+
'other_beam_q0': 1.,
|
|
23
|
+
'slices_other_beam_Sigma_11': np.array([1]),
|
|
24
|
+
'slices_other_beam_Sigma_12': np.array([0]),
|
|
25
|
+
'slices_other_beam_Sigma_22': np.array([0]),
|
|
26
|
+
'slices_other_beam_Sigma_33': np.array([1]),
|
|
27
|
+
'slices_other_beam_Sigma_34': np.array([0]),
|
|
28
|
+
'slices_other_beam_Sigma_44': np.array([0]),
|
|
29
|
+
},
|
|
30
|
+
'SpaceChargeBiGaussian': {
|
|
31
|
+
'longitudinal_profile': {
|
|
32
|
+
'__class__': 'LongitudinalProfileQGaussian',
|
|
33
|
+
'number_of_particles': 1,
|
|
34
|
+
'sigma_z': 0,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# copyright ############################### #
|
|
2
|
+
# This file is part of the Xfields package. #
|
|
3
|
+
# Copyright (c) CERN, 2025. #
|
|
4
|
+
# ######################################### #
|
|
5
|
+
|
|
6
|
+
from ..beam_elements.beambeam2d import BeamBeamBiGaussian2D
|
|
7
|
+
from ..beam_elements.beambeam3d import BeamBeamBiGaussian3D
|
|
8
|
+
from ..beam_elements.spacecharge import SpaceChargeBiGaussian
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
DEFAULT_XFIELDS_ELEMENTS = [
|
|
12
|
+
BeamBeamBiGaussian2D,
|
|
13
|
+
BeamBeamBiGaussian3D,
|
|
14
|
+
SpaceChargeBiGaussian,
|
|
15
|
+
]
|
|
16
|
+
|
|
@@ -104,6 +104,9 @@ xfields/longitudinal_profiles/__init__.py
|
|
|
104
104
|
xfields/longitudinal_profiles/coasting.py
|
|
105
105
|
xfields/longitudinal_profiles/qgaussian.py
|
|
106
106
|
xfields/longitudinal_profiles/qgaussian_src/qgaussian.h
|
|
107
|
+
xfields/prebuilt_kernel_definitions/__init__.py
|
|
108
|
+
xfields/prebuilt_kernel_definitions/element_inits.py
|
|
109
|
+
xfields/prebuilt_kernel_definitions/element_types.py
|
|
107
110
|
xfields/slicers/__init__.py
|
|
108
111
|
xfields/slicers/compressed_profile.py
|
|
109
112
|
xfields/slicers/uniform.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.25.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam3d_ref_frame_changes.h
RENAMED
|
File without changes
|
{xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/beambeam_src/beambeam3d_transport_sigmas.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/electronlens_src/electronlens_interpolated.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xfields-0.25.0 → xfields-0.25.2}/xfields/beam_elements/spacecharge_src/spacechargebigaussian.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xfields-0.25.0 → xfields-0.25.2}/xfields/config_tools/beambeam_config_tools/config_tools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xfields-0.25.0 → xfields-0.25.2}/xfields/fieldmaps/interpolated_src/tricubic_coefficients.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|