def main():
<EOL>logger = logging.getLogger()<EOL>folder = os.path.join(os.getcwd(), '<STR_LIT>', '<STR_LIT>')<EOL>if not os.path.isdir(folder):<EOL><INDENT>os.makedirs(folder)<EOL><DEDENT>filename = os.path.join(folder, '<STR_LIT>')<EOL>env = Environment(trajectory='<STR_LIT>',<EOL>multiproc=True,<EOL>ncores=<NUM_LIT:4>,<EOL>wrap_mode='<STR_LIT>',<EOL>filename=filename,<EOL>overwrite_file=True)<EOL>traj = env.traj<EOL>traj.par.ncells = Parameter('<STR_LIT>', <NUM_LIT>, '<STR_LIT>')<EOL>traj.par.steps = Parameter('<STR_LIT>', <NUM_LIT>, '<STR_LIT>')<EOL>traj.par.rule_number = Parameter('<STR_LIT>', <NUM_LIT:30>, '<STR_LIT>')<EOL>traj.par.initial_name = Parameter('<STR_LIT>', '<STR_LIT>', '<STR_LIT>')<EOL>traj.par.seed = Parameter('<STR_LIT>', <NUM_LIT>, '<STR_LIT>')<EOL>exp_dict = {'<STR_LIT>' : [<NUM_LIT:10>, <NUM_LIT:30>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>],<EOL>'<STR_LIT>' : ['<STR_LIT>', '<STR_LIT>'],}<EOL>exp_dict = cartesian_product(exp_dict)<EOL>traj.f_explore(exp_dict)<EOL>logger.info('<STR_LIT>')<EOL>env.run(wrap_automaton)<EOL>traj.f_load(load_data=<NUM_LIT:2>)<EOL>logger.info('<STR_LIT>')<EOL>for idx, run_name in enumerate(traj.f_iter_runs()):<EOL><INDENT>filename = os.path.join(folder, make_filename(traj))<EOL>plot_pattern(traj.crun.pattern, traj.rule_number, filename)<EOL>progressbar(idx, len(traj), logger=logger)<EOL><DEDENT>env.disable_logging()<EOL>
Main *boilerplate* function to start simulation