Skip to content

Commit

Permalink
#281: - change time with load in VTDataWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Wróbel committed Oct 22, 2022
1 parent fb695c6 commit 41f586a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lbaf/IO/lbsVTDataWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ def __init__(self, phase: Phase, logger: Logger, f: str = "lbs_out", s: str = "v
self.__output_dir = output_dir

def write(self):
""" Write one JSON file per rank with the following format:
<phase-id>, <object-id>, <time>
"""
""" Write one JSON file per rank. """
sys.setrecursionlimit(25000)
with Pool() as pool:
results = pool.imap_unordered(self.json_writer, self.__phase.get_ranks())
Expand Down Expand Up @@ -82,7 +80,7 @@ def json_writer(self, rank: Rank) -> str:
phase_dict = {"tasks": list(), "id": rank_id}
for task in others_list:
task_dict = {
"time": task["obj_time"],
"load": task["obj_time"],
"resource": "cpu",
"object": task["obj_id"]}
phase_dict["tasks"].append(task_dict)
Expand Down

0 comments on commit 41f586a

Please sign in to comment.