minor typo
This commit is contained in:
parent
5fa4dd9683
commit
cf5c96c28e
2 changed files with 2 additions and 2 deletions
2
main.py
2
main.py
|
@ -181,7 +181,7 @@ def main(parsed_args):
|
|||
from tqdm import tqdm
|
||||
from low_level import progress_bar_from_logfile
|
||||
for b in tqdm(range(1,parsed_args.N_tiles**3+1), desc="sCOLA", unit="box", disable=(parsed_args.verbose==0)):
|
||||
progress_bar_from_logfile(main_dict["logdir"]+main_dict["simname"]+".log_"+str(b), desc=f"Box {b}/{parsed_args.N_tiles**3+1}", verbose=parsed_args.verbose, leave=False)
|
||||
progress_bar_from_logfile(main_dict["logdir"]+main_dict["simname"]+".log_"+str(b), desc=f"Box {b}/{parsed_args.N_tiles**3}", verbose=parsed_args.verbose, leave=False)
|
||||
print_message("sCOLA finished.", 1, "control", verbose=parsed_args.verbose)
|
||||
|
||||
print_message("Running post-sCOLA.", 1, "control", verbose=parsed_args.verbose)
|
||||
|
|
2
scola.py
2
scola.py
|
@ -27,7 +27,7 @@ def main_scola(parsed_args):
|
|||
command_args = ["scola", paramfile, log_file, "-b", str(b)]
|
||||
if parsed_args.verbose < 2:
|
||||
subprocess.Popen(command_args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) # Use Popen instead of run to be able to display the progress bar
|
||||
progress_bar_from_logfile(log_file+f"_{b}", desc=f" Box {b}/{nboxes_tot+1}", verbose=parsed_args.verbose, leave=False)
|
||||
progress_bar_from_logfile(log_file+f"_{b}", desc=f" Box {b}/{nboxes_tot}", verbose=parsed_args.verbose, leave=False)
|
||||
else:
|
||||
subprocess.run(command_args)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue