Loading tests/split_rendering/utils.py +14 −19 Original line number Diff line number Diff line Loading @@ -160,7 +160,6 @@ def truncate_signal( and write the truncated signal to out_file """ with file_lock: data, fs = readfile(in_file) if data.ndim == 1: Loading Loading @@ -251,11 +250,9 @@ def run_full_chain_split_rendering( if test_info.config.option.create_ref or test_info.config.option.create_cut: in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt] cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) with file_lock: if not path.exists(cut_in_file): truncate_signal(in_file, cut_in_file) else: file_lock.acquire(timeout=10) # wait max 10s until the lock is available file_lock.release() # release immediately enc_cmd[3] = str(cut_in_file) else: Loading Loading @@ -432,11 +429,9 @@ def run_external_split_rendering( if test_info.config.option.create_ref or test_info.config.option.create_cut: in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt] cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) with file_lock: if not path.exists(cut_in_file): truncate_signal(in_file, cut_in_file) else: file_lock.acquire(timeout=10) # wait max 10s until the lock is available file_lock.release() # release immediately split_pre_cmd[6] = str(cut_in_file) else: Loading Loading
tests/split_rendering/utils.py +14 −19 Original line number Diff line number Diff line Loading @@ -160,7 +160,6 @@ def truncate_signal( and write the truncated signal to out_file """ with file_lock: data, fs = readfile(in_file) if data.ndim == 1: Loading Loading @@ -251,11 +250,9 @@ def run_full_chain_split_rendering( if test_info.config.option.create_ref or test_info.config.option.create_cut: in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt] cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) with file_lock: if not path.exists(cut_in_file): truncate_signal(in_file, cut_in_file) else: file_lock.acquire(timeout=10) # wait max 10s until the lock is available file_lock.release() # release immediately enc_cmd[3] = str(cut_in_file) else: Loading Loading @@ -432,11 +429,9 @@ def run_external_split_rendering( if test_info.config.option.create_ref or test_info.config.option.create_cut: in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt] cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) with file_lock: if not path.exists(cut_in_file): truncate_signal(in_file, cut_in_file) else: file_lock.acquire(timeout=10) # wait max 10s until the lock is available file_lock.release() # release immediately split_pre_cmd[6] = str(cut_in_file) else: Loading