Loading run_sim.py +6 −4 Original line number Diff line number Diff line Loading @@ -26,6 +26,9 @@ def run_sim(): ---------- None """ comm = MPI.COMM_WORLD ind_thread = comm.Get_rank() # Get version of the Package __version__ = version("csst_msc_sim") Loading @@ -40,6 +43,7 @@ def run_sim(): with open(args.config_file, "r") as stream: try: config = yaml.safe_load(stream) if ind_thread == 0: for key, value in config.items(): print(key + " : " + str(value)) except yaml.YAMLError as exc: Loading Loading @@ -126,8 +130,6 @@ def run_sim(): #move config to .bak if args.markdone: comm = MPI.COMM_WORLD ind_thread = comm.Get_rank() comm.Barrier() if ind_thread == 0: shutil.move(args.config_file, args.config_file+'.bak') Loading Loading
run_sim.py +6 −4 Original line number Diff line number Diff line Loading @@ -26,6 +26,9 @@ def run_sim(): ---------- None """ comm = MPI.COMM_WORLD ind_thread = comm.Get_rank() # Get version of the Package __version__ = version("csst_msc_sim") Loading @@ -40,6 +43,7 @@ def run_sim(): with open(args.config_file, "r") as stream: try: config = yaml.safe_load(stream) if ind_thread == 0: for key, value in config.items(): print(key + " : " + str(value)) except yaml.YAMLError as exc: Loading Loading @@ -126,8 +130,6 @@ def run_sim(): #move config to .bak if args.markdone: comm = MPI.COMM_WORLD ind_thread = comm.Get_rank() comm.Barrier() if ind_thread == 0: shutil.move(args.config_file, args.config_file+'.bak') Loading