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

Save `time.perf_counter()` in t1

So we do not call `time.perf_counter()` a second time after a simple
assignment.
parent b311d3ae
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,9 @@ def process_1_file(bbox, nco_instance, nc_file, cropped_fname, unpacked_fname, ...@@ -35,8 +35,9 @@ def process_1_file(bbox, nco_instance, nc_file, cropped_fname, unpacked_fname,
nc_file = cropped_fname nc_file = cropped_fname
nco_instance.ncpdq(nc_file, output = unpacked_fname, options = ["--unpack"]) nco_instance.ncpdq(nc_file, output = unpacked_fname, options = ["--unpack"])
elapsed_NCO = time.perf_counter() - t0 t1 = time.perf_counter()
t0 = time.perf_counter() elapsed_NCO = t1 - t0
t0 = t1
subprocess.run([inst_eddies_exe, unpacked_fname, unpacked_fname], subprocess.run([inst_eddies_exe, unpacked_fname, unpacked_fname],
check = True, input = f"&dates_nml date = {d}, " check = True, input = f"&dates_nml date = {d}, "
f"slice = {my_slice}/\n", text = True) f"slice = {my_slice}/\n", text = True)
......
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