Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias Import alias Import alias TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad Str attr keyword Call AttributeLoad NameLoad attr Expr Str Assign NameStore Str Expr Str Assign NameStore ListLoad Expr Str Assign NameStore ListLoad Expr Str FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq NameLoad Str BoolOpAnd Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad TryFinally body TryExcept body Expr Yield handlers ExceptHandler type NameLoad name NameStore body Raise NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args defaults vararg body Expr Str Assign NameStore Call NameLoad ListComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call NameLoad BinOpMod Str Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Str orelse If CompareIn SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr body Expr Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num orelse Expr Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If BoolOpOr CompareEq NameLoad TupleLoad CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str If CompareEq NameLoad ListLoad body Expr Call NameLoad Str orelse Expr Call NameLoad Str For NameStore NameLoad body If BoolOpOr CompareEq NameLoad TupleLoad CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str Str decorator_list FunctionDef arguments args defaults vararg body Expr Str If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore SubscriptLoad NameLoad Index Num Expr Call NameLoad Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr orelse Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Index Num keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt Call NameLoad AttributeLoad Call NameLoad NameLoad attr Num body Raise Call NameLoad Str FunctionDef arguments args defaults body Expr Str Assign NameStore NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotIn NameLoad NameLoad body Assign NameStore BinOpAdd ListLoad NameLoad NameLoad Expr Call NameLoad Str Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad ListLoad NameLoad If NameLoad body AugAssignAdd NameStore ListLoad NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad For NameStore NameLoad body Expr Call NameLoad BinOpAdd Str Call NameLoad NameLoad decorator_list Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad ListLoad NameLoad If NameLoad body AugAssignAdd NameStore ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd Str Call AttributeLoad Str attr ListComp BinOpAdd BinOpAdd BinOpAdd Str BinOpMod Str BinOpAdd BinOpAdd AttributeLoad NameLoad attr IfExp CompareEq NameLoad NameLoad Str Str Str Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str Index Num Str comprehension NameStore NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword BinOpAdd Str IfExp BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn NameLoad NameLoad BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Str keyword NameLoad keyword ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Num keyword TupleLoad Str Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword ListLoad Str Str Str Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Num keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str If AttributeLoad NameLoad attr body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num If AttributeLoad NameLoad attr body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad Break orelse If AttributeLoad NameLoad attr body Assign NameStore Lambda arguments args defaults NameLoad If CompareIs NameLoad NameLoad body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad BoolOpOr NameLoad ListLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad IfExp CompareIs NameLoad NameLoad Str NameLoad If CompareIsNot NameLoad NameLoad body Global identifier Assign NameStore NameLoad Global identifier Assign NameStore NameLoad With Call NameLoad body With Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str body If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad If NameLoad body Expr Call NameLoad keyword NameLoad If BoolOpOr BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad BinOpSub NameLoad NameLoad attr decorator_list
N/A N/A Framework for quick and clean experiments with python.

For a simple example to adapt to your own needs, check the example
file.

Written by Peter Duerr.
 __future__ print_function __future__ unicode_literals __future__ division __future__ absolute_import N/A unittest N/A sys datetime datetime N/A argparse N/A subprocess N/A N/A N/A argcomplete N/A AUTO_COMPLETION True N/A N/A N/A ImportError N/A N/A AUTO_COMPLETION False contextlib contextmanager inspect getargspec N/A multiprocessing pyexperiment conf pyexperiment log pyexperiment state pyexperiment.State StateHandler pyexperiment.utils.printers print_bold pyexperiment.utils.interactive embed_interactive N/A DEFAULT_CONFIG_SPECS N/A N/A [pyexperiment]
verbosity = option('DEBUG','INFO','WARNING','ERROR','CRITICAL',default='WARNING')
log_to_file = boolean(default=False)
log_filename = string(default=log.txt)
log_file_verbosity = option('DEBUG','INFO','WARNING','ERROR','CRITICAL',default='DEBUG')
rotate_n_logs = integer(min=0, default=5)
print_timings = boolean(default=False)
load_state = boolean(default=False)
save_state = boolean(default=False)
state_filename = string(default=experiment_state.h5f)
rotate_n_state_files = integer(min=0, default=5)
n_replicates = integer(min=1, default=25)
n_processes = integer(min=1, default={n_processes})
[[plot]]
font_size = integer(min=1, default=14)
label_size = integer(min=1, default=14)
use_tex = boolean(default=True)
line_width = integer(min=1, default=4)
[[[seaborn]]]
enable = boolean(default=True)
style = option('darkgrid','whitegrid','dark','white','ticks',default='darkgrid')
palette_name = string(default=colorblind)
desat = float(min=0.0, max=1.0, default=0.6)
 format n_processes N/A N/A multiprocessing cpu_count N/A Default specification for the experiment's configuration
 N/A DEFAULT_CONFIG_FILENAME ./config.ini N/A Default name for the configuration file
 N/A TESTS N/A N/A List of all tests for the experiment. Filled by main.
 N/A COMMANDS N/A N/A List of all commands for the experiment. Filled by main.
 logging_context N/A N/A N/A N/A N/A Initialize and close the logger based on the configuration
     N/A verbosity N/A conf N/A pyexperiment.verbosity N/A log_to_file N/A conf N/A pyexperiment.log_to_file N/A N/A N/A N/A isinstance log_to_file str N/A log_to_file True N/A N/A isinstance log_to_file bool log_to_file N/A N/A log_filename N/A conf N/A pyexperiment.log_filename N/A N/A log_filename None N/A log_file_verbosity N/A conf N/A pyexperiment.log_file_verbosity N/A rotate_n_logs N/A int N/A conf N/A pyexperiment.rotate_n_logs N/A N/A N/A log initialize console_level verbosity filename log_filename file_level log_file_verbosity no_backups rotate_n_logs N/A N/A N/A N/A N/A N/A N/A N/A N/A Exception N/A err N/A N/A err N/A N/A N/A N/A log close N/A contextmanager help N/A N/A N/A args N/A N/A Shows help for a specified command.
     N/A help_dict N/A dict N/A N/A N/A command __name__ N/A command __doc__ N/A command COMMANDS N/A N/A N/A len args 0 N/A N/A N/A print N/A To get help on a command, use %s help COMMAND N/A N/A N/A N/A sys argv N/A 0 replace ./ N/A N/A N/A N/A args N/A 0 N/A N/A help_dict keys N/A N/A N/A print N/A help_dict N/A N/A args N/A 0 N/A N/A N/A print N/A Command '%s' not available. N/A args N/A 0 N/A show_config N/A N/A N/A N/A N/A Print the configuration
     N/A N/A N/A conf show N/A save_config N/A N/A filename N/A N/A N/A Save a configuration file to a filename
     N/A N/A N/A conf save filename N/A N/A print N/A Wrote configuration to '%s' filename N/A test N/A N/A N/A args N/A N/A Run tests for the experiment
     N/A all_tests N/A N/A test_case TESTS N/A N/A N/A N/A args N/A N/A N/A test_case __name__ args N/A N/A N/A N/A all_tests append N/A N/A N/A N/A unittest TestLoader loadTestsFromTestCase test_case N/A suite N/A N/A unittest TestSuite all_tests N/A N/A N/A N/A N/A unittest TextTestRunner verbosity 2 run suite N/A show_tests N/A N/A N/A args N/A N/A Show available tests for the experiment
     N/A N/A TESTS N/A N/A N/A N/A print_bold No tests available N/A N/A N/A print_bold Available tests: N/A test_case TESTS N/A N/A N/A N/A args N/A N/A N/A test_case __name__ args N/A N/A N/A print N/A N/A N/A N/A str N/A test_case __name__ :	 N/A N/A N/A N/A N/A test_case __doc__ replace replace N/A show_state N/A N/A N/A arguments N/A N/A Shows the contents of the state loaded by the configuration or from
    the file specified as an argument.
     N/A N/A N/A len arguments 0 N/A N/A state_file N/A conf N/A pyexperiment.state_filename N/A N/A state_file N/A arguments N/A 0 N/A N/A print_bold Load state from file '%s' state_file N/A N/A N/A N/A N/A state load state_file lazy False raise_error True N/A N/A N/A IOError N/A err N/A N/A N/A print err N/A N/A N/A N/A len state 0 N/A N/A N/A N/A state show N/A N/A N/A print State empty N/A activate_autocompletion N/A N/A N/A N/A N/A Activate auto completion for your experiment with zsh or bash.

    Call with eval "$(script_name activate_autocompletion)".
    In zsh you may need to call `autoload bashcompinit` and
    `bashcompinit` first.

     N/A process N/A N/A subprocess Popen N/A register-python-argcomplete N/A N/A N/A N/A N/A sys argv N/A 0 split / N/A -1 stdout N/A subprocess PIPE N/A N/A out _err N/A N/A process communicate N/A N/A print out N/A collect_commands N/A N/A default commands N/A N/A N/A Add default commands
     N/A default_commands N/A help test show_tests show_config save_config show_state N/A N/A N/A default None N/A N/A len N/A N/A getargspec default args 0 N/A N/A N/A TypeError Main function cannot take arguments. show_commands N/A N/A N/A N/A N/A Print the available commands
         N/A cmds commands N/A N/A N/A default None N/A default cmds N/A N/A cmds N/A N/A default commands N/A N/A print_bold Available commands: N/A all_commands N/A N/A cmds default_commands N/A show_commands N/A AUTO_COMPLETION N/A N/A all_commands N/A activate_autocompletion N/A names N/A N/A command __name__ N/A command all_commands N/A name names N/A N/A N/A print N/A N/A str name N/A N/A all_commands N/A N/A commands default_commands N/A show_commands N/A AUTO_COMPLETION N/A N/A all_commands N/A activate_autocompletion N/A all_commands N/A format_command_help N/A N/A default commands N/A N/A N/A Format the docstrings of the commands.
     N/A string N/A available commands:

 N/A N/A join N/A N/A N/A N/A N/A %-22s N/A N/A N/A command __name__ N/A N/A command default  (default) : N/A N/A join N/A N/A N/A N/A N/A N/A command __doc__ replace split . N/A 0 N/A command commands N/A N/A command __doc__ None N/A string N/A setup_arg_parser N/A N/A default commands description N/A N/A N/A Setup the argument parser for the experiment
     N/A command_help N/A format_command_help default commands N/A arg_parser N/A N/A argparse ArgumentParser formatter_class N/A argparse RawDescriptionHelpFormatter description description epilog command_help N/A N/A N/A arg_parser add_argument command help N/A choose a command to run N/A N/A N/A default None N/A default commands N/A N/A , running  N/A default __name__  by default type str choices N/A N/A command __name__ N/A command commands nargs ? N/A N/A N/A arg_parser add_argument argument help argument to the command type str nargs * N/A N/A N/A arg_parser add_argument -c --config help specify a configuration file type str default DEFAULT_CONFIG_FILENAME N/A N/A N/A arg_parser add_argument -o --option help override a configuration option type str nargs 2 metavar N/A key value action append N/A N/A N/A arg_parser add_argument -i --interactive action store_true help drop to interactive prompt after COMMAND N/A N/A N/A arg_parser add_argument --verbosity type str choices N/A DEBUG INFO WARNING ERROR CRITICAL action store help choose the console logger's verbosity N/A N/A N/A arg_parser add_argument -v action store_true help shortcut for --verbosity DEBUG N/A N/A N/A arg_parser add_argument -j --processes nargs 1 type int action store help set number of parallel processes used N/A N/A N/A arg_parser add_argument --print-timings action store_true help print logged timings N/A AUTO_COMPLETION N/A N/A N/A N/A argcomplete autocomplete arg_parser N/A arg_parser N/A handle_shortcuts N/A N/A args N/A N/A N/A Handle argument shortcuts
     N/A N/A N/A args verbosity None N/A N/A N/A N/A args option None N/A N/A N/A args option N/A N/A N/A N/A N/A args option append N/A pyexperiment.verbosity N/A args verbosity N/A N/A N/A args v N/A N/A N/A N/A args option None N/A N/A N/A args option N/A N/A N/A N/A N/A args option append N/A pyexperiment.verbosity DEBUG N/A N/A args processes N/A N/A N/A N/A args option None N/A N/A N/A args option N/A N/A N/A N/A N/A args option append N/A pyexperiment.n_processes N/A str N/A N/A args processes N/A 0 N/A N/A args print_timings N/A N/A N/A N/A args option None N/A N/A N/A args option N/A N/A N/A N/A N/A args option append N/A pyexperiment.print_timings True N/A configure N/A N/A default commands config_specs description N/A N/A N/A Load configuration from command line arguments and optionally, a
    configuration file. Possible command line arguments depend on the
    list of supplied commands, the configuration depends on the
    supplied configuration specification.
     N/A arg_parser N/A setup_arg_parser default commands description N/A args N/A N/A arg_parser parse_args N/A N/A handle_shortcuts args N/A N/A N/A conf initialize N/A args config N/A N/A N/A option encode N/A option N/A N/A config_specs split N/A args option N/A N/A N/A option encode N/A option N/A N/A DEFAULT_CONFIG_SPECS split N/A actual_command default N/A N/A N/A args command None N/A N/A command commands N/A N/A N/A N/A command __name__ N/A args command N/A N/A actual_command command N/A N/A N/A N/A args interactive N/A N/A actual_command N/A N/A N/A N/A None N/A N/A actual_command None N/A N/A N/A print Error: Not enough arguments. N/A N/A N/A arg_parser print_usage N/A N/A None N/A args argument N/A args interactive N/A N/A actual_command N/A args argument N/A args interactive N/A main N/A N/A default commands config_spec tests description N/A None None None None N/A N/A Parses command line arguments and configuration, then runs the
    appropriate command.
     N/A start_time N/A N/A datetime now N/A N/A N/A log debug Start: '%s' N/A N/A join N/A sys argv N/A N/A N/A log debug Time: '%s' start_time N/A commands N/A collect_commands default N/A commands N/A N/A N/A run_command arguments interactive N/A configure default commands config_spec N/A N/A description None Thanks for using %(prog)s. description N/A N/A tests None N/A N/A TESTS N/A TESTS tests N/A COMMANDS N/A COMMANDS commands N/A N/A logging_context N/A N/A N/A StateHandler filename N/A conf N/A pyexperiment.state_filename load N/A conf N/A pyexperiment.load_state save N/A conf N/A pyexperiment.save_state rotate_n_files N/A conf N/A pyexperiment.rotate_n_state_files N/A N/A N/A run_command None N/A N/A result N/A run_command arguments N/A N/A result None N/A N/A N/A print result N/A interactive N/A N/A N/A embed_interactive result result N/A N/A N/A N/A isinstance N/A conf N/A pyexperiment.print_timings bool N/A conf N/A pyexperiment.print_timings N/A N/A conf N/A pyexperiment.print_timings True N/A N/A N/A N/A log print_timings N/A end_time N/A N/A datetime now N/A N/A N/A log debug End: '%s' N/A N/A join N/A sys argv N/A N/A N/A log debug Time: '%s' end_time N/A N/A N/A log debug Took: %.3fs N/A N/A N/A end_time start_time total_seconds N/A