From ba1739f080da6e929eb3483fc9540735b88f9960 Mon Sep 17 00:00:00 2001 From: Angel Ferran Pousa Date: Thu, 2 May 2024 14:39:36 +0200 Subject: [PATCH 1/4] Increase version number --- wake_t/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wake_t/__init__.py b/wake_t/__init__.py index a8c5eb4..ef1abb7 100644 --- a/wake_t/__init__.py +++ b/wake_t/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.7.1' +__version__ = '0.8.0' from .beamline_elements import (PlasmaStage, PlasmaRamp, ActivePlasmaLens, From 0e9d25657829d6dbfffb38c4392baadc111d8014 Mon Sep 17 00:00:00 2001 From: Angel Ferran Pousa Date: Thu, 2 May 2024 14:42:18 +0200 Subject: [PATCH 2/4] Increase resolution in example --- tutorials/01_single_plasma_simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/01_single_plasma_simulation.py b/tutorials/01_single_plasma_simulation.py index 2588f31..df67f71 100644 --- a/tutorials/01_single_plasma_simulation.py +++ b/tutorials/01_single_plasma_simulation.py @@ -68,7 +68,7 @@ plasma_target = PlasmaStage( length=1e-2, density=1e23, wakefield_model='quasistatic_2d', - xi_max=30e-6, xi_min=-30e-6, r_max=30e-6, n_xi=60, n_r=30, ppc=4) + xi_max=30e-6, xi_min=-30e-6, r_max=30e-6, n_xi=120, n_r=60, ppc=4) # %% # Once the target is defined, we can track the beam through it simply by doing: From c876f4dee42ea1ae324e8671efc0cb0af2911e34 Mon Sep 17 00:00:00 2001 From: Angel Ferran Pousa Date: Thu, 2 May 2024 14:43:24 +0200 Subject: [PATCH 3/4] Use new `copy` method in tests --- tests/test_parabolic_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_parabolic_profile.py b/tests/test_parabolic_profile.py index ebd0859..ba0a095 100644 --- a/tests/test_parabolic_profile.py +++ b/tests/test_parabolic_profile.py @@ -55,8 +55,8 @@ def parabolic_coefficient(z): # Create identical bunches for each case. bunch = get_matched_bunch( 1e-6, 1e-6, 200, 1, 3, laser.xi_c - 30e-6, 1e-6, 1e4, n_p=n_p) - bunch_1 = deepcopy(bunch) - bunch_2 = deepcopy(bunch) + bunch_1 = bunch.copy() + bunch_2 = bunch.copy() # Create single plasma stage (containing all sections). plasma_single = PlasmaStage( From 5792febeb01892613c8d40cb24fe336591d7e783 Mon Sep 17 00:00:00 2001 From: Angel Ferran Pousa Date: Wed, 15 May 2024 17:25:37 +0200 Subject: [PATCH 4/4] Use new copy method --- tests/test_field_quadrupole.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_field_quadrupole.py b/tests/test_field_quadrupole.py index 65e93bd..b24c9aa 100644 --- a/tests/test_field_quadrupole.py +++ b/tests/test_field_quadrupole.py @@ -26,7 +26,7 @@ def test_field_vs_tm_quadrupole(): ene=gamma_avg, ene_sp=ene_spread, s_t=s_t, xi_c=xi_avg, q_tot=q_bunch, n_part=n_part, name='elec_bunch') - bunch_2 = copy.deepcopy(bunch_1) + bunch_2 = bunch_1.copy() foc_strength = 100 # T/m quadrupole_length = 0.05 # m