def generate_margins (tape_path, output_path) : tape_stream = file (tape_path, 'r') output_stream = file (output_path, 'w') sys.stderr.write ('[ii] parsing tape %s ...\n' % (tape_path)) trials = tape_parser.parse_tape (tape_stream) sys.stderr.write ('[ii] generating margins plot...\n') plot_generator.generate_margins (trials, output_stream)
def import_trials (database_path, problem, evolver, population, tape_path) : tape_stream = file (tape_path, 'r') sys.stderr.write ('[ii] parsing tape %s ...\n' % (tape_path)) trials = tape_parser.parse_tape (tape_stream) database = result_database.database (database_path) database.create_schema () sys.stderr.write ('[ii] importing tape...\n') result_database.import_trials (database, problem, evolver, population, trials, tape_path) database.close ()