Skip to content
Snippets Groups Projects
Commit 8413125a authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

fixing documentation indendation

parent 3b391851
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,12 @@ class dst:
Class afterwards hold the following
dictionary items:
- x [m]
- xp [rad]
- y [m]
- yp [rad]
- phi [rad]
- E [MeV] (kinetic energy)
- x [m]
- xp [rad]
- y [m]
- yp [rad]
- phi [rad]
- E [MeV] (kinetic energy)
'''
def __init__(self,
filename=None,
......@@ -246,12 +246,12 @@ class plt:
Class afterwards hold the following
dictionary items:
- Ne (number of locations)
- Np (number of particles)
- Ib [A] (beam current)
- freq [MHz]
- mc2 [MeV]
- Nelp [m] (locations)
- Ne (number of locations)
- Np (number of particles)
- Ib [A] (beam current)
- freq [MHz]
- mc2 [MeV]
- Nelp [m] (locations)
each plt[i], where i is element number, holds:
- Zgen [cm] (location)
......@@ -265,12 +265,13 @@ class plt:
- E [array, MeV]
- l [array] (is lost)
Example::
Example::
plt=ess.TraceWin.plt('calc/dtl1.plt')
for i in [97,98]:
data=plt[i]$
if data:
print(data['x'])
data=plt[i]
if data:
print(data['x'])
'''
def __init__(self, filename):
# easy storage..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment