Skip to content
Snippets Groups Projects
Commit 48b2802a authored by Levecque Etienne's avatar Levecque Etienne
Browse files

fix: correct dict update not available in python3.8

parent 1e9f3e89
Branches
No related tags found
No related merge requests found
......@@ -9,11 +9,12 @@ import antecedent.utils as utils
def send_logs(verbose, shared_dict, task_id, iteration, max_iteration, done):
if verbose and shared_dict is not None and iteration % 100 == 0:
tmp_dict = shared_dict[task_id]
shared_dict[task_id] = tmp_dict | {'completed': iteration, 'total': max_iteration}
#tmp_dict = shared_dict[task_id]
shared_dict[task_id].update({'completed': iteration, 'total': max_iteration})
#shared_dict[task_id] = tmp_dict | {'completed': iteration, 'total': max_iteration}
elif verbose and done:
print(f"DONE {iteration}/{max_iteration}", end="\r")
elif verbose:
elif verbose and shared_dict is None and iteration % 100 == 0:
print(f"RUNNING {iteration}/{max_iteration}", end="\r")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment