Skip to content

Commit

Permalink
minor fixes to projections reader (#126)
Browse files Browse the repository at this point in the history
Co-authored-by: adityaranjan <[email protected]>
Co-authored-by: Alexander Movsesyan <[email protected]>
  • Loading branch information
3 people authored Oct 18, 2024
1 parent 8e63214 commit 05d9563
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pipit/readers/projections_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ def read_sts_file(self):
# Add to self.chares
elif line_arr[0] == "CHARE":
id = int(line_arr[1])
name = line_arr[2][1 : len(line_arr[2]) - 1]
dimensions = int(line_arr[3])
name = " ".join(line_arr[2:-1])[1:-1]
dimensions = int(line_arr[-1])
self.chares[id] = (name, dimensions)
# print(int(line_arr[1]), line_arr[2][1:len(line_arr[2]) - 1])

# add to self.entries
elif line_arr[0] == "ENTRY":
Expand All @@ -180,7 +179,6 @@ def read_sts_file(self):
id = int(line_arr[2])
entry_name = line_arr[3][1 : len(line_arr[3]) - 1]
chare_id = int(line_arr[4])
# name = self.chares[chare_id][0] + '::' + entry_name
self.entries[id] = (entry_name, chare_id)

# Add to message_table
Expand Down Expand Up @@ -563,7 +561,7 @@ def _read_log_file(self, rank_size) -> pd.DataFrame:
"Entry Type": "Processing",
"Event ID": event,
"Message Length": msglen,
"Recieve Time": recv_time,
"Receive Time": recv_time,
"ID List": id,
"CPU Start Time": cpu_start_time,
"perf counts list": perf_counts,
Expand Down

0 comments on commit 05d9563

Please sign in to comment.