Skip to content

Commit

Permalink
ruff 0.9.0 format
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed Jan 10, 2025
1 parent d44a9b6 commit 4bf5946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
"# Print out the largest entries adding up to at least this fraction of the total\n",
"threshold = 0.97\n",
"compile_summary[\"FracNonChild\"] = compile_summary[\"DurNonChildMs\"] / total_compile_time\n",
"print(f\"Top {threshold:.0%}+ of {total_compile_time*1e-3:.2f}s compilation time\")\n",
"print(f\"Top {threshold:.0%}+ of {total_compile_time * 1e-3:.2f}s compilation time\")\n",
"for row in compile_summary[\n",
" compile_summary[\"FracNonChild\"].cumsum() <= threshold\n",
"].itertuples():\n",
Expand Down
4 changes: 2 additions & 2 deletions .github/container/nsys_jax/nsys_jax/scripts/nsys_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def run_nsys_recipe(recipe, report_file, tmp_dir, output_queue):
continue
output_queue.put((ofile, full_path, COMPRESS_NONE))
print(
f"{archive_name}: recipe post-processing finished in {time.time()-start:.2f}s"
f"{archive_name}: recipe post-processing finished in {time.time() - start:.2f}s"
)

def compress_and_archive(prefix, file, output_queue):
Expand Down Expand Up @@ -425,7 +425,7 @@ def keep_column(name):
# If there's no data, don't write a file to the output at all
pass
print(
f"{archive_name}: stats post-processing finished in {time.time()-start:.2f}s"
f"{archive_name}: stats post-processing finished in {time.time() - start:.2f}s"
)

def save_device_stream_thread_names(tmp_dir, report, output_queue):
Expand Down

0 comments on commit 4bf5946

Please sign in to comment.