Skip to content

Commit

Permalink
minor style
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaranjan committed Mar 6, 2024
1 parent f5a89ee commit 4600d08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pipit/readers/otf2_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def events_reader(self, rank_size):
if value is not None and key != "time":
# uses field_to_val to convert all data types
# and ensure that there are no pickling errors
attributes_dict[
self.field_to_val(key)
] = self.handle_data(value)
attributes_dict[self.field_to_val(key)] = (
self.handle_data(value)
)
event_attributes.append(attributes_dict)
else:
# nan attributes for leave rows
Expand Down
8 changes: 5 additions & 3 deletions pipit/util/cct.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ def create_cct(events):

# add node as root or child of its
# parent depending on current depth
graph.add_root(
curr_node
) if curr_depth == 0 else parent_node.add_child(curr_node)
(
graph.add_root(curr_node)
if curr_depth == 0
else parent_node.add_child(curr_node)
)

# Update nodes stack, column, and current depth
nodes_stack.append(curr_node)
Expand Down

0 comments on commit 4600d08

Please sign in to comment.