skip to navigation
skip to content

Not Logged In

madseq 0.1

Parser/transformator for MAD-X sequences

Description

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

Dependencies

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

Installation

The setup is to be performed as follows

python setup.py install

Usage

The command should be called as follows:

Usage:
    madseq.py [-j <json>] [-o <output] [<input>]
    madseq.py (--help | --version)

Options:
    -o <output>, --output=<output>  Set output file
    -j <json>, --json=<json>        Set JSON output file
    -h, --help                      Show this help
    -v, --version                   Show version information
    python -m madseq <infile.madx >outfile.madx

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.

Caution

  • 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.
 
File Type Py Version Uploaded on Size
madseq-0.1.tar.gz (md5) Source 2014-01-23 8KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 27 downloads in the last week
  • 155 downloads in the last month