def print_logo(curr_dir): filename = os.path.join(curr_dir, 'logo.txt') with open(filename, 'r') as logo: pyrklog.critical("\nWelcome to PyRK.\n" + "(c) Kathryn D. Huff\n" + "Your simulation is starting.\n" + "Perhaps it's time for a coffee.\n" + logo.read())
def main(args, curr_dir): np.set_printoptions(precision=5, threshold=np.inf) logger.set_up_pyrklog(args.logfile) infile = importlib.import_module(args.infile) si = sim_info.SimInfo(timer=infile.ti, components=infile.components, iso=infile.fission_iso, e=infile.spectrum, n_precursors=infile.n_pg, n_decay=infile.n_dg, kappa=infile.kappa, feedback=infile.feedback, rho_ext=infile.rho_ext, plotdir=args.plotdir) print_logo(curr_dir) # n_components = len(si.components) sol = solve(si=si, y=si.y, infile=infile) log_results(si) plotter.plot(sol, si) pyrklog.critical("\nSimulation succeeded.\n")