Skip to content

Commit

Permalink
running pre-commit hooks on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan F. Esteban Müller committed Nov 8, 2024
1 parent d93f257 commit eb5d047
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions py/orbit/aperture/ApertureLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one teapot node accelerator node.
"""

# import the auxiliary classes
from ..utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/aperture/ApertureLatticeRangeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one teapot node accelerator node.
"""

# import the auxiliary classes
from ..utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/bumps/BumpLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one teapot node accelerator node.
"""

# import the auxiliary classes
from orbit.utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/collimation/collimationLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one collimator node accelerator node.
"""

# import the auxiliary classes
from ..utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/diagnostics/diagnosticsLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one diagnostics node accelerator node.
"""

# import the auxiliary classes
from ..utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/fieldtracker/TeapotFieldLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one fieldtracker node accelerator node.
"""

# import the auxiliary classes
from orbit.utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/foils/foilLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one teapot node accelerator node.
"""

# import the auxiliary classes
from orbit.utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/impedances/ImpedanceLatticeModifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Module. Includes functions that will modify the accelerator lattice
by inserting an impedance node into a teapot accelerator node.
"""

# import the auxiliary classes
from orbit.utils import orbitFinalize

Expand Down
1 change: 0 additions & 1 deletion py/orbit/impedances/ImpedanceNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Module. Includes classes for impedance accelerator nodes.
"""


# import physical constants
from orbit.utils import consts

Expand Down
1 change: 1 addition & 0 deletions py/orbit/injection/InjectionLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one teapot node accelerator node.
"""

# import the auxiliary classes
from orbit.utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/kickernodes/KickerLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one teapot node accelerator node.
"""

# import the auxiliary classes
from ..utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/matrix_lattice/MATRIX_Lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
the lattice is a linac lattice.
The This class cannot calculate chromaticities.
"""

import os
import math

Expand Down
1 change: 0 additions & 1 deletion py/orbit/py_linac/lattice/LinacRfGapNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ def ttf_track_bunch__(self, bunch, frequency, E0L, phase):


class RF_AxisFieldsStore:

"""
The dictionary with the axis field Functions
with the input file names as keys.
Expand Down
1 change: 1 addition & 0 deletions py/orbit/space_charge/sc1d/scLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes functions that will modify the accelerator lattice by inserting the one teapot node accelerator node.
"""

# import the auxiliary classes
from orbit.utils import orbitFinalize

Expand Down
1 change: 1 addition & 0 deletions py/orbit/space_charge/scLatticeModifications.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes a base function that will modify the accelerator lattice by inserting the SC accelerator nodes.
"""

# import the auxiliary classes
from orbit.utils import orbitFinalize

Expand Down
4 changes: 2 additions & 2 deletions py/orbit/teapot/teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ def getElements(self, madElem):
return [drft_1, elem, drft_2]
# ==========Others elements such as markers,monitor,rcollimator
if (
madElem.getType().lower() == "marker"
or # madElem.getType().lower() == "monitor" or \
madElem.getType().lower() == "marker" # madElem.getType().lower() == "monitor" or \
or
# madElem.getType().lower() == "hmonitor" or \
# madElem.getType().lower() == "vmonitor" or \
madElem.getType().lower() == "rcolimator"
Expand Down
1 change: 1 addition & 0 deletions py/orbit/teapot/teapot_matrix_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
all parts of TEAPOT elements. The RF cavities in the Matrix lattice are the
TEAPOT RF Cavity class instances.
"""

import os
import math

Expand Down
1 change: 1 addition & 0 deletions py/orbit/time_dep/time_dep.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module. Includes classes for all time-dependent lattice.
"""

import sys
import os
import math
Expand Down

0 comments on commit eb5d047

Please sign in to comment.