Skip to content

Commit cd2371c

Browse files
Style fixes
Signed-off-by: Anuradha Karuppiah <26330987+AnuradhaKaruppiah@users.noreply.github.com>
1 parent 19c6103 commit cd2371c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/nvidia_nat_eval/scripts/print_atif_function_tree.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ def _print_tree(nodes: dict[str, NodeStats]) -> None:
114114
for child_ids in by_parent.values():
115115
child_ids.sort(key=lambda fid: nodes[fid].function_name)
116116

117-
roots = [
118-
fid for fid, node in nodes.items()
119-
if (node.parent_id in (None, "", "root")) and fid != "root"
120-
]
117+
roots = [fid for fid, node in nodes.items() if (node.parent_id in (None, "", "root")) and fid != "root"]
121118
roots.sort(key=lambda fid: nodes[fid].function_name)
122119

123120
def rec(function_id: str, prefix: str, is_last: bool, visited: set[str]) -> None:

packages/nvidia_nat_eval/scripts/print_ist_function_tree.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,7 @@ def _print_tree(nodes: dict[str, NodeStats]) -> None:
105105
for child_ids in by_parent.values():
106106
child_ids.sort(key=lambda fid: nodes[fid].function_name)
107107

108-
roots = [
109-
fid for fid, node in nodes.items()
110-
if (node.parent_id in (None, "", "root")) and fid != "root"
111-
]
108+
roots = [fid for fid, node in nodes.items() if (node.parent_id in (None, "", "root")) and fid != "root"]
112109
roots.sort(key=lambda fid: nodes[fid].function_name)
113110

114111
def rec(function_id: str, prefix: str, is_last: bool, visited: set[str]) -> None:

0 commit comments

Comments
 (0)