From 5792febeb01892613c8d40cb24fe336591d7e783 Mon Sep 17 00:00:00 2001 From: Angel Ferran Pousa Date: Wed, 15 May 2024 17:25:37 +0200 Subject: [PATCH] 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