Commit 1ee9bab0 authored by Jan Kiene's avatar Jan Kiene
Browse files

Revert "always overwrite existing reference outputs"

This reverts commit 99a09975.
parent 859ba817
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -552,7 +552,7 @@ def encode(
        ref_stats_file = None
        dut_stats_file = None

    if update_ref in [1, 2]:
    if update_ref in [1, 2] and not os.path.exists(ref_out_file):
        check_and_makedir(ref_out_dir)

        # call REF encoder
@@ -714,7 +714,7 @@ def decode(
    dut_out_file = f"{dut_out_dir}/{output_file}"
    ref_out_file = f"{ref_out_dir}/{output_file}"

    if update_ref == 1 or update_ref == 2:
    if update_ref == 1 or update_ref == 2 and not os.path.exists(ref_out_file):
        check_and_makedir(ref_out_dir)
        add_option_list = dec_opts_list
        if tracefile_dec != "":