Skip to content
Snippets Groups Projects
Commit 43756358 authored by GUEZ Lionel's avatar GUEZ Lionel
Browse files

Flush before calling `subprocess.run`

Else the output of `subprocess.run` comes before the print statements
in the script.
parent 925e73e8
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,9 @@ if "nc_time" not in inst_eddies_nml["input_ssh_nml"]: ...@@ -105,7 +105,9 @@ if "nc_time" not in inst_eddies_nml["input_ssh_nml"]:
# First date is out of the loop because we run it without setting # First date is out of the loop because we run it without setting
# leave_trace to False: # leave_trace to False:
print( print(
"inst_eddies.loop_inst_eddies: Date:", inst_eddies_nml["main_nml"]["date"] "inst_eddies.loop_inst_eddies: Date:",
inst_eddies_nml["main_nml"]["date"],
flush=True,
) )
process_1_file( process_1_file(
inst_eddies_exe, inst_eddies_exe,
...@@ -126,6 +128,7 @@ for inst_eddies_nml["input_ssh_nml"]["nc_time"] in range( ...@@ -126,6 +128,7 @@ for inst_eddies_nml["input_ssh_nml"]["nc_time"] in range(
print( print(
"inst_eddies.loop_inst_eddies: Date:", "inst_eddies.loop_inst_eddies: Date:",
inst_eddies_nml["main_nml"]["date"], inst_eddies_nml["main_nml"]["date"],
flush=True,
) )
process_1_file( process_1_file(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment