Skip to content

Commit

Permalink
minor fixes to projections reader
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaranjan committed Mar 6, 2024
1 parent bf974ff commit f5a89ee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 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 @@ -525,7 +523,7 @@ def _read_log_file(self, rank_size) -> pd.DataFrame:
"Message Length": msglen,
"Event ID": event,
"Send Time": send_time,
"Destinatopn PEs": destPEs,
"Destination PEs": destPEs,
}

_add_to_trace_dict(
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 f5a89ee

Please sign in to comment.