aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/AcceleratorLattice/analysis.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/Tests/AcceleratorLattice/analysis.py')
-rwxr-xr-xExamples/Tests/AcceleratorLattice/analysis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/Tests/AcceleratorLattice/analysis.py b/Examples/Tests/AcceleratorLattice/analysis.py
index d2fd7f6ff..35da52443 100755
--- a/Examples/Tests/AcceleratorLattice/analysis.py
+++ b/Examples/Tests/AcceleratorLattice/analysis.py
@@ -70,7 +70,7 @@ read_lattice('lattice', z_location)
# Fetch the initial position of the particle
x0 = [float(x) for x in ds.parameters.get('electron.single_particle_pos').split()]
-ux0 = [float(x)*c for x in ds.parameters.get('electron.single_particle_vel').split()]
+ux0 = [float(x)*c for x in ds.parameters.get('electron.single_particle_u').split()]
xx = x0[0]
zz = x0[2]