xfields 0.23.2__tar.gz → 0.23.4__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.23.2 → xfields-0.23.4}/PKG-INFO +1 -1
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_electroncloud.py +10 -3
- xfields-0.23.4/xfields/_version.py +1 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/config_tools/electroncloud_config_tools.py +7 -5
- {xfields-0.23.2 → xfields-0.23.4}/xfields/config_tools/spacecharge_config_tools.py +3 -2
- {xfields-0.23.2 → xfields-0.23.4}/xfields.egg-info/PKG-INFO +1 -1
- xfields-0.23.2/xfields/_version.py +0 -1
- {xfields-0.23.2 → xfields-0.23.4}/LICENSE +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/MANIFEST.in +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/README.md +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/pyproject.toml +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/setup.cfg +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/setup.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_alpha_pi_setter.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeam2d.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeam3d_part1.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeam3d_part2.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeam_pic.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeamstrongstrong2d.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeamstrongstrong2d_pi.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeamstrongstrong3d.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beambeamstrongstrong3d_pi.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beamstrahlung.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_beamstrahlung_pic.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_bhabha.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_cerrf.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_compressed_profile_interp_result.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_constant_charge_slicing.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_electronlens_interpolated.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_element_with_slicer_filling_scheme.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_ibs_growth_rates.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_ibs_kicks.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_iptocp_strongstrong.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_lumi.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_mean_std.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_profiles.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_slicer.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_spacecharge.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/tests/test_temp_slicer.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam2d.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam3d.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam3dpic.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeam.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeam2d.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeam3d.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeam3d_methods_for_strongstrong.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeam3d_ref_frame_changes.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeam3d_transport_sigmas.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeampic_methods.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/electroncloud.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/electroncloud_src/electroncloud.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/electronlens_interpolated.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/electronlens_src/electronlens_interpolated.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/element_with_slicer.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/spacecharge.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/spacecharge_src/spacecharge3d.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/spacecharge_src/spacechargebigaussian.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/temp_slicer.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/waketracker/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/waketracker/convolution.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/beam_elements/waketracker/waketracker.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/config_tools/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/config_tools/beambeam_config_tools/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/config_tools/beambeam_config_tools/_madpoint.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/config_tools/beambeam_config_tools/config_tools.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/config_tools/beambeam_config_tools/orbit_dependent_configuration_tools.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/bigaussian.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/bigaussian_src/bigaussian.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/bigaussian_src/bigaussian_fieldmap.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/bigaussian_src/compute_gx_gy.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/bigaussian_src/faddeeva.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/bigaussian_src/faddeeva_cernlib.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/bigaussian_src/faddeeva_mit.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/interpolated.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/interpolated_src/central_diff.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/interpolated_src/charge_deposition.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/interpolated_src/cubic_interpolators.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/interpolated_src/linear_interpolators.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/interpolated_src/tricubic_coefficients.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/fieldmaps/tricubicinterpolated.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/general.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/beamstrahlung_spectrum.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/beamstrahlung_spectrum_pic.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/bhabha_spectrum.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/compressed_profile.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/compute_slice_moments.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/constants.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/particle_states.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/power_n.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/headers/sincos.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/ibs/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/ibs/_analytical.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/ibs/_api.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/ibs/_formulary.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/ibs/_kicks.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/longitudinal_profiles/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/longitudinal_profiles/coasting.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/longitudinal_profiles/qgaussian.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/longitudinal_profiles/qgaussian_src/qgaussian.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/slicers/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/slicers/compressed_profile.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/slicers/slicers_src/uniform_bin_slicer.h +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/slicers/uniform.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/solvers/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/solvers/base.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/solvers/fftsolvers.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/test_support/__init__.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields/test_support/temp_makepart.py +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields.egg-info/SOURCES.txt +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields.egg-info/dependency_links.txt +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields.egg-info/requires.txt +0 -0
- {xfields-0.23.2 → xfields-0.23.4}/xfields.egg-info/top_level.txt +0 -0
|
@@ -119,9 +119,16 @@ def test_electroncloud_config(test_context):
|
|
|
119
119
|
'mqd': {key: ecloud_info['mqd'][key] for key in list(ecloud_info['mqd'].keys())[:5]}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
twiss_without_ecloud, twiss_with_ecloud = xf.full_electroncloud_setup(line=line,
|
|
123
|
-
ecloud_info=reduced_ecloud_info, filenames=pinch_filenames,
|
|
124
|
-
|
|
122
|
+
twiss_without_ecloud, twiss_with_ecloud = xf.full_electroncloud_setup(line=line,
|
|
123
|
+
ecloud_info=reduced_ecloud_info, filenames=pinch_filenames,
|
|
124
|
+
context=test_context, zeta_max=zeta_max)
|
|
125
125
|
|
|
126
126
|
xo.assert_allclose(twiss_with_ecloud['x'],twiss_without_ecloud['x'], atol=3e-12, rtol=0)
|
|
127
127
|
xo.assert_allclose(twiss_with_ecloud['y'],twiss_without_ecloud['y'], atol=3e-12, rtol=0)
|
|
128
|
+
|
|
129
|
+
tt = line.get_table()
|
|
130
|
+
assert np.all(tt.rows[tt.element_type == 'ElectronCloud'].name == np.array(
|
|
131
|
+
['ecloud.mqd.12.0', 'ecloud.mqf.12.0', 'ecloud.mqd.12.1',
|
|
132
|
+
'ecloud.mqf.12.1', 'ecloud.mqd.12.10', 'ecloud.mqf.12.10',
|
|
133
|
+
'ecloud.mqd.12.11', 'ecloud.mqf.12.11', 'ecloud.mqd.12.12',
|
|
134
|
+
'ecloud.mqf.12.12']))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.23.4"
|
|
@@ -92,17 +92,19 @@ def get_electroncloud_fieldmap_from_h5(
|
|
|
92
92
|
|
|
93
93
|
def insert_electronclouds(eclouds, fieldmap=None, line=None):
|
|
94
94
|
assert line is not None
|
|
95
|
+
insertions = []
|
|
96
|
+
env = line.env
|
|
95
97
|
for name in eclouds.keys():
|
|
96
98
|
s = eclouds[name]["s"]
|
|
97
99
|
length = 0.
|
|
98
|
-
|
|
99
|
-
element=ElectronCloud(
|
|
100
|
+
element=ElectronCloud(
|
|
100
101
|
length=length,
|
|
101
102
|
fieldmap=fieldmap,
|
|
102
|
-
_buffer=fieldmap._buffer)
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
_buffer=fieldmap._buffer)
|
|
104
|
+
env.elements[name] = element
|
|
105
|
+
insertions.append(env.place(name, at=s))
|
|
105
106
|
|
|
107
|
+
line.insert(insertions)
|
|
106
108
|
|
|
107
109
|
def config_electronclouds(line, twiss=None, ecloud_info=None, shift_to_closed_orbit=False,
|
|
108
110
|
subtract_dipolar_kicks=False, fieldmaps=None):
|
|
@@ -22,7 +22,8 @@ def install_spacecharge_frozen(line=None, _buffer=None,
|
|
|
22
22
|
tol_spacecharge_position=None,
|
|
23
23
|
s_spacecharge=None,
|
|
24
24
|
delta_rms=None,
|
|
25
|
-
z_kick_num_integ_per_sigma=0
|
|
25
|
+
z_kick_num_integ_per_sigma=0,
|
|
26
|
+
prefix='spacecharge_'):
|
|
26
27
|
|
|
27
28
|
'''
|
|
28
29
|
Install spacecharge elements (frozen modeling) in a xtrack.Line object.
|
|
@@ -106,7 +107,7 @@ def install_spacecharge_frozen(line=None, _buffer=None,
|
|
|
106
107
|
mean_y=0.,
|
|
107
108
|
sigma_x=1.,
|
|
108
109
|
sigma_y=1.))
|
|
109
|
-
sc_names.append(f'
|
|
110
|
+
sc_names.append(f'{prefix}{ii}')
|
|
110
111
|
|
|
111
112
|
insertions.append((ss, [(sc_names[-1], sc_elements[-1])]))
|
|
112
113
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.23.2"
|
|
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.23.2 → xfields-0.23.4}/xfields/beam_elements/beambeam_src/beambeam3d_ref_frame_changes.h
RENAMED
|
File without changes
|
{xfields-0.23.2 → xfields-0.23.4}/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.23.2 → xfields-0.23.4}/xfields/beam_elements/electronlens_src/electronlens_interpolated.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xfields-0.23.2 → xfields-0.23.4}/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.23.2 → xfields-0.23.4}/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
|
{xfields-0.23.2 → xfields-0.23.4}/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
|