dec_parser

module for parsing decay card *.dec file

do_command(cmd, params, lines)[source]

do command in commands

get_decay(words, lines)[source]

parser decay command

get_particles(words, _lines)[source]

parser particles command

get_words(lines)[source]

get all words in a lines

load_dec(s)[source]

load *.dec string

load_dec_file(f)[source]

load *.dec file

process_decay_card(lines)[source]

process all the files as a generator

regist_command(name=None)[source]

regist command function for command call

remove_comment(words)[source]

remove comment string which starts with ‘#’.

sigle_decay(s)[source]

do each decay line

split_lines(s)[source]

split each lines