Skip to content

Commit

Permalink
Update Stub Files
Browse files Browse the repository at this point in the history
  • Loading branch information
cemitch99 authored and github-actions[bot] committed Oct 9, 2024
1 parent dfe9b28 commit 80e6e34
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 32 deletions.
1 change: 1 addition & 0 deletions src/python/impactx/impactx_pybind/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ def push(
| elements.TaperedPL
| elements.ThinDipole,
step: int = 0,
period: int = 0,
) -> None:
"""
Push particles through an element
Expand Down
154 changes: 122 additions & 32 deletions src/python/impactx/impactx_pybind/elements.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ class Aperture(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -117,13 +120,20 @@ class Aperture(Named, Thin, Alignment):

class BeamMonitor(Thin):
def __init__(
self, name: str, backend: str = "default", encoding: str = "g"
self,
name: str,
backend: str = "default",
encoding: str = "g",
period_sample_intervals: int = 1,
) -> None:
"""
This element writes the particle beam out to openPMD data.
"""
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -186,7 +196,10 @@ class Buncher(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -223,7 +236,10 @@ class CFbend(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -260,7 +276,10 @@ class ChrAcc(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -295,7 +314,10 @@ class ChrDrift(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand All @@ -318,7 +340,10 @@ class ChrPlasmaLens(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -355,7 +380,10 @@ class ChrQuad(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -393,7 +421,10 @@ class ConstF(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -437,7 +468,10 @@ class DipEdge(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -486,7 +520,10 @@ class Drift(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand All @@ -499,7 +536,10 @@ class Empty(Thin):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand All @@ -520,7 +560,10 @@ class ExactDrift(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand All @@ -543,7 +586,10 @@ class ExactSbend(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -579,7 +625,10 @@ class Kicker(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -736,7 +785,10 @@ class Marker(Named, Thin):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand All @@ -758,7 +810,10 @@ class Multipole(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -811,7 +866,10 @@ class NonlinearLens(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand All @@ -838,7 +896,10 @@ class PRot(Named, Thin):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -888,15 +949,17 @@ class Programmable(Named):
@property
def push(
self,
) -> typing.Callable[[impactx.impactx_pybind.ImpactXParticleContainer, int], None]:
) -> typing.Callable[
[impactx.impactx_pybind.ImpactXParticleContainer, int, int], None
]:
"""
hook for push of whole container (pc, step)
hook for push of whole container (pc, step, period)
"""
@push.setter
def push(
self,
arg1: typing.Callable[
[impactx.impactx_pybind.ImpactXParticleContainer, int], None
[impactx.impactx_pybind.ImpactXParticleContainer, int, int], None
],
) -> None: ...
@property
Expand Down Expand Up @@ -932,7 +995,10 @@ class Quad(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -966,7 +1032,10 @@ class RFCavity(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -1016,7 +1085,10 @@ class Sbend(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -1045,7 +1117,10 @@ class ShortRF(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -1091,7 +1166,10 @@ class SoftQuadrupole(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -1131,7 +1209,10 @@ class SoftSolenoid(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -1174,7 +1255,10 @@ class Sol(Named, Thick, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -1209,7 +1293,10 @@ class TaperedPL(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down Expand Up @@ -1287,7 +1374,10 @@ class ThinDipole(Named, Thin, Alignment):
"""
def __repr__(self) -> str: ...
def push(
self, pc: impactx.impactx_pybind.ImpactXParticleContainer, step: int = 0
self,
pc: impactx.impactx_pybind.ImpactXParticleContainer,
step: int = 0,
period: int = 0,
) -> None:
"""
Push first the reference particle, then all other particles.
Expand Down

0 comments on commit 80e6e34

Please sign in to comment.