def main(): random.seed(42) numpy.random.seed(42) experiments, experimentOptions, otherOptions = Experiment.parseOptions( sys.argv[1:]) print experimentOptions print otherOptions if len(experiments) != 1: raise RuntimeError("You must specify exactly one experiment") # We want to list all the available checkpoints if otherOptions['listAvailableCheckpoints']: utils.printAvailableCheckpoints(experiments[0]) sys.exit() if len(experiments) != 1: usage(parser, "Exactly one experiment may be specified") if otherOptions['profilePython']: _runExperiment = profileRunExperiment else: _runExperiment = runExperiment _runExperiment(experiments[0], experimentOptions) if otherOptions['profilePython']: p = pstats.Stats("re.profile") p.strip_dirs().sort_stats("cumulative").print_stats(30)
def main(): random.seed(42) numpy.random.seed(42) experiments, experimentOptions, otherOptions = Experiment.parseOptions(sys.argv[1:]) print experimentOptions print otherOptions if len(experiments) != 1: raise RuntimeError("You must specify exactly one experiment") # We want to list all the available checkpoints if otherOptions['listAvailableCheckpoints']: utils.printAvailableCheckpoints(experiments[0]) sys.exit() if len(experiments) != 1: usage(parser, "Exactly one experiment may be specified") if otherOptions['profilePython']: _runExperiment = profileRunExperiment else: _runExperiment = runExperiment _runExperiment(experiments[0], experimentOptions) if otherOptions['profilePython']: p = pstats.Stats("re.profile") p.strip_dirs().sort_stats("cumulative").print_stats(30)