MADX_LattElement#

class orbit.parsers.MADX_LattElement(name, Typename)[source]#

Bases: object

Class. Represents an arbitrary element in the lattice

Methods Summary

addParameter(nameOfPar, parVal)

Method.

getElements()

Method.

getName()

Method.

getParameter(nameOfPar)

Method.

getParameters()

Method.

getType()

Method.

hasParameter(nameOfPar)

setType(tp)

Method.

Methods Documentation

addParameter(nameOfPar, parVal)[source]#

Method. Adds parameter and value to element.

getElements()[source]#

Method. Returns list of elements (only one here)

getName()[source]#

Method. Returns name of element

getParameter(nameOfPar)[source]#

Method. Returns name of parameter.

getParameters()[source]#

Method. Returns parameter dictionary.

getType()[source]#

Method. Returns type of element

hasParameter(nameOfPar)[source]#
setType(tp)[source]#

Method. Sets the type of element without checking.