stop useless wait
This commit is contained in:
parent
cfb14571e8
commit
1b6f67a671
1 changed files with 1 additions and 2 deletions
|
@ -237,7 +237,6 @@ def progress_bar_from_logfile(filename:str, desc:str="", verbose:int=1, **kwargs
|
|||
k=0
|
||||
limit=600
|
||||
update_interval=0.2
|
||||
sleep(2) # Wait for the process to be launched, and for the previous log file to be overwritten if necessary.
|
||||
wait_until_file_exists(filename, verbose=verbose, limit=limit)
|
||||
current_operation, total_operations = get_progress_from_logfile(filename)
|
||||
previous_operation = 0
|
||||
|
@ -266,4 +265,4 @@ def progress_bar_from_logfile(filename:str, desc:str="", verbose:int=1, **kwargs
|
|||
if k*update_interval >= limit:
|
||||
print_message(f"Progress bar timed out after {limit} seconds.", 3, "low level", verbose=verbose)
|
||||
|
||||
return
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue