aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/AcceleratorLattice/analysis.py
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2023-04-10 13:16:06 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-10 20:16:06 +0000
commitd75ce5579090337658d7b1fe3ad64545a1a24b26 (patch)
treea684d600ececaf88f18deeb12dd5488fc7be1519 /Examples/Tests/AcceleratorLattice/analysis.py
parent4ef28deda80a2a51896ee5fccb71b013ceddd8a0 (diff)
downloadWarpX-d75ce5579090337658d7b1fe3ad64545a1a24b26.tar.gz
WarpX-d75ce5579090337658d7b1fe3ad64545a1a24b26.tar.zst
WarpX-d75ce5579090337658d7b1fe3ad64545a1a24b26.zip
Lattice: Line Docs & Rename (#3815)
* Lattice: Line Docs & Rename Rename the `lattice` element type to `line` and add documentation for it. * Add `{}` for Dave :)
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 35da52443..55fb1b2ac 100755
--- a/Examples/Tests/AcceleratorLattice/analysis.py
+++ b/Examples/Tests/AcceleratorLattice/analysis.py
@@ -62,7 +62,7 @@ def read_lattice(rootname, z_location):
quad_lengths.append(length)
quad_strengths_E.append(float(ds.parameters.get(f'{element}.dEdx')))
z_location += length
- elif element_type == 'lattice':
+ elif element_type == 'line':
z_location = read_lattice(element, z_location)
return z_location