Skip to content

Commit 8821687

Browse files
committed
Format imports
1 parent fe0aa5e commit 8821687

File tree

1 file changed

+18
-28
lines changed

1 file changed

+18
-28
lines changed

py/orbit/teapot/teapot.py

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,36 @@
11
"""
22
Module. Includes classes for all TEAPOT elements. The approach is based
33
on the original ORBIT approach developed by J. Holmes.
4+
5+
Elements:
6+
- Drift
7+
- Bend
8+
- Quad
9+
- Multipole
10+
- Solenoid
11+
- Kicker
12+
- RingRF
13+
- Monitor
414
"""
515

616
import sys
717
import os
818
import math
919

10-
# import teapot base functions from wrapper around C++ functions
20+
from ..lattice import AccLattice
21+
from ..lattice import AccNode
22+
from ..lattice import AccActionsContainer
23+
from ..lattice import AccNodeBunchTracker
1124
from ..teapot_base import TPB
12-
13-
# import the function that creates multidimensional arrays
1425
from ..utils import orbitFinalize
15-
16-
# import general accelerator elements and lattice
17-
from ..lattice import AccLattice, AccNode, AccActionsContainer, AccNodeBunchTracker
18-
19-
# import the MAD parser to construct lattices of TEAPOT elements.
20-
from ..parsers.mad_parser import MAD_Parser, MAD_LattElement
21-
22-
# import the MADX parser to construct lattices of TEAPOT elements.
23-
from ..parsers.madx_parser import MADX_Parser, MADX_LattElement
24-
25-
# import aperture
26+
from ..parsers.mad_parser import MAD_Parser
27+
from ..parsers.mad_parser import MAD_LattElement
28+
from ..parsers.madx_parser import MADX_Parser
29+
from ..parsers.madx_parser import MADX_LattElement
2630
from orbit.core.aperture import Aperture
27-
28-
# monitor
2931
from orbit.core.bunch import BunchTwissAnalysis
3032

3133

32-
"""
33-
Drift
34-
Bend
35-
Quad
36-
Multipole
37-
Solenoid
38-
Kicker
39-
RingRF
40-
monitor
41-
"""
42-
43-
4434
class TEAPOT_Lattice(AccLattice):
4535
"""
4636
The subclass of the AccLattice class. Shell class for the TEAPOT nodes collection.

0 commit comments

Comments
 (0)