Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pyaml/arrays/octupole.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .array import ArrayModel
from .array import Array
from ..lattice.element_holder import ElementHolder,MagnetType

# Define the main class name for this module
PYAMLCLASS = "Octupole"

class ConfigModel(ArrayModel):...

class Octupole(Array):
"""
Class that implements access to arrays (families)
"""
def __init__(self, cfg: ArrayModel):
super().__init__(cfg)

def fill_array(self,holder:ElementHolder):
holder.fill_magnet_array(MagnetType.OCTUPOLE,self._cfg.name,self._cfg.elements)

19 changes: 19 additions & 0 deletions pyaml/arrays/sextupole.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .array import ArrayModel
from .array import Array
from ..lattice.element_holder import ElementHolder,MagnetType

# Define the main class name for this module
PYAMLCLASS = "Sextupole"

class ConfigModel(ArrayModel):...

class Sextupole(Array):
"""
Class that implements access to arrays (families)
"""
def __init__(self, cfg: ArrayModel):
super().__init__(cfg)

def fill_array(self,holder:ElementHolder):
holder.fill_magnet_array(MagnetType.SEXTUPOLE,self._cfg.name,self._cfg.elements)

19 changes: 19 additions & 0 deletions pyaml/arrays/skewoctu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .array import ArrayModel
from .array import Array
from ..lattice.element_holder import ElementHolder,MagnetType

# Define the main class name for this module
PYAMLCLASS = "SkewOctu"

class ConfigModel(ArrayModel):...

class SkewOctu(Array):
"""
Class that implements access to arrays (families)
"""
def __init__(self, cfg: ArrayModel):
super().__init__(cfg)

def fill_array(self,holder:ElementHolder):
holder.fill_magnet_array(MagnetType.SKEWOCTU,self._cfg.name,self._cfg.elements)

19 changes: 19 additions & 0 deletions pyaml/arrays/skewquad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .array import ArrayModel
from .array import Array
from ..lattice.element_holder import ElementHolder,MagnetType

# Define the main class name for this module
PYAMLCLASS = "SkewQuad"

class ConfigModel(ArrayModel):...

class SkewQuad(Array):
"""
Class that implements access to arrays (families)
"""
def __init__(self, cfg: ArrayModel):
super().__init__(cfg)

def fill_array(self,holder:ElementHolder):
holder.fill_magnet_array(MagnetType.SKEWQUAD,self._cfg.name,self._cfg.elements)

19 changes: 19 additions & 0 deletions pyaml/arrays/skewsext.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from .array import ArrayModel
from .array import Array
from ..lattice.element_holder import ElementHolder,MagnetType

# Define the main class name for this module
PYAMLCLASS = "SkewSext"

class ConfigModel(ArrayModel):...

class SkewSext(Array):
"""
Class that implements access to arrays (families)
"""
def __init__(self, cfg: ArrayModel):
super().__init__(cfg)

def fill_array(self,holder:ElementHolder):
holder.fill_magnet_array(MagnetType.SKEWSEXT,self._cfg.name,self._cfg.elements)

Loading