Skip to content

Commit 5bb08ef

Browse files
authored
Merge pull request #56 from QuTech-Delft/fix/last-instrs-logs
Fix LAST instrs logs
2 parents 32cedf2 + ed2b0b4 commit 5bb08ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

netqasm/runtime/cli.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
post_function_from_path,
2323
)
2424
from netqasm.runtime.env import get_example_apps, init_folder, new_folder
25-
from netqasm.runtime.process_logs import create_app_instr_logs
25+
from netqasm.runtime.process_logs import create_app_instr_logs, make_last_log
2626
from netqasm.runtime.settings import (
2727
Formalism,
2828
Simulator,
@@ -356,7 +356,9 @@ def simulate(
356356
enable_logging=log_to_files,
357357
hardware=hardware,
358358
)
359-
create_app_instr_logs(log_cfg.log_subroutines_dir)
359+
if log_to_files:
360+
create_app_instr_logs(log_cfg.log_subroutines_dir)
361+
make_last_log(log_cfg.log_subroutines_dir)
360362

361363
if timer:
362364
print(f"finished simulation in {round(time.perf_counter() - start, 2)} seconds")

0 commit comments

Comments
 (0)