Sequence

class Sequence(name, madx, _check=True)[source]

Bases: object

MAD-X sequence representation.

Attributes Summary

beam

Get the beam dictionary associated to the sequence.

elements

Get list of elements.

expanded_elements

List of elements including implicit drifts.

has_beam

Check if the sequence has an associated beam.

is_expanded

Check if sequence is already expanded.

length

Return sequence length in the declaration

name

Get the name of the sequence.

twiss_table

Get the TWISS results from the last calculation.

twiss_table_name

Get the name of the table with the TWISS results.

Methods Summary

element_names()

element_positions()

expand()

Expand sequence (needed for expanded_elements).

expanded_element_names()

expanded_element_positions()

use()

Set this sequence as active.

Attributes Documentation

beam

Get the beam dictionary associated to the sequence.

elements

Get list of elements.

expanded_elements

List of elements including implicit drifts.

has_beam

Check if the sequence has an associated beam.

is_expanded

Check if sequence is already expanded.

length

Return sequence length in the declaration

name

Get the name of the sequence.

twiss_table

Get the TWISS results from the last calculation.

twiss_table_name

Get the name of the table with the TWISS results.

Methods Documentation

element_names()[source]
element_positions()[source]
expand()[source]

Expand sequence (needed for expanded_elements).

expanded_element_names()[source]
expanded_element_positions()[source]
use()[source]

Set this sequence as active.