skip to navigation
skip to content

madseq 0.3.1

Parser/transformator for MAD-X sequences

Latest Version: 0.4.4


Script to parse MAD-X sequences from a source file and perform simple transformations on the elements.


  • docopt to parse command line options
  • pydicti to store and access element attributes


The setup is to be performed as follows

python install


The command should be called as follows:

Usage: [-j|-y] [-s <slice>] [<input>] [<output>] (--help | --version)

    -j, --json                      Use JSON as output format
    -y, --yaml                      Use YAML as output format
    -s <slice>, --slice=<slice>     Set slicing definition file
    -h, --help                      Show this help
    -v, --version                   Show version information

If <input> is not specified the standard input stream will be used to read the input file. Respectively, the standard output stream will be used if <output> is not specified.


  • Do not use multi line commands in the input sequences. At the moment these are not parsed correctly!
  • Do not add any at= position arguments in the input sequences. The madseq script takes care of this responsibility.



  • use semantic versioning <>
  • fix deep attribute lookup for elements


  • redesigned command line
  • fix erroneous parsing of MAD-X arrays, like KNL={…}
  • remove inline attributes for slicing
  • extended slicing via slicing configuration file
  • fix usability of template (predefined) elements
File Type Py Version Uploaded on Size
madseq-0.3.1.tar.gz (md5) Source 2014-05-03 9KB
  • Downloads (All Versions):
  • 10 downloads in the last day
  • 132 downloads in the last week
  • 659 downloads in the last month