Module Expr Str Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Continue orelse Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call NameLoad NameLoad Num body Continue orelse If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Str body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Continue Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A  Convert Avida output files to CSV format for easier use with programs such as R, Excel, Python, etc. N/A argparse N/A csv N/A re N/A string N/A sys N/A __version__ 1.0 N/A __date__ 2012-05-18 N/A __author__ Brian Connelly <bdc@msu.edu> N/A __credits__ Brian Connelly <bdc@msu.edu> N/A __maintainer__ Brian Connelly <bdc@msu.edu> N/A __license__ Apache License Version 2.0 N/A __status__ Production avida2csv N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Convert Avida output files to CSV format version N/A N/A {v} format v __version__ N/A N/A N/A parser add_argument -c --comments dest comment_char default # metavar C help character to be used for comments (default #) N/A N/A N/A parser add_argument -d --delimiter dest delimiter default , metavar D help delimiter (default ,) N/A N/A N/A parser add_argument -H --noheader dest header action store_false default True help do not write header information N/A N/A N/A parser add_argument -i --infile type N/A N/A argparse FileType rb default N/A sys stdin help input file (default: stdin) N/A N/A N/A parser add_argument -o --outfile nargs ? type N/A N/A argparse FileType w default N/A sys stdout help output file (default: stdout) N/A cmd_args N/A N/A parser parse_args N/A w N/A N/A csv writer N/A cmd_args outfile delimiter N/A cmd_args delimiter N/A header N/A N/A line N/A cmd_args infile N/A N/A line N/A N/A line rstrip N/A m N/A N/A re match ^\s*#\s*(?P<colnum>\d+):\s*(?P<description>.*)$ line N/A m N/A N/A N/A N/A header append N/A N/A re sub \W+ _ N/A N/A m group description N/A m N/A N/A re match ^\s*# line N/A m N/A N/A N/A N/A line_toks N/A N/A line split N/A N/A N/A len line_toks 0 N/A N/A N/A N/A N/A N/A N/A len line_toks 1 N/A N/A line_toks N/A 0 N/A N/A N/A cmd_args header N/A N/A N/A N/A w writerow header N/A N/A vals N/A map float line_toks N/A N/A N/A w writerow vals N/A N/A N/A N/A cmd_args infile close N/A N/A N/A N/A cmd_args outfile close N/A N/A N/A __name__ __main__ N/A N/A N/A avida2csv