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

fix: correct shared dict issue

parent e1410571
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,9 @@ 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].update({'completed': iteration, 'total': max_iteration})
#shared_dict[task_id] = tmp_dict | {'completed': iteration, 'total': max_iteration}
tmp_dict = shared_dict[task_id]
tmp_dict.update({'completed': iteration, 'total': max_iteration})
shared_dict[task_id] = tmp_dict
elif verbose and done:
print(f"DONE {iteration}/{max_iteration}", end="\r")
elif verbose and shared_dict is None and iteration % 100 == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment