From 4bf5946eae9f0ad0fbed02545eff00ff17fa4c5d Mon Sep 17 00:00:00 2001 From: Olli Lupton Date: Fri, 10 Jan 2025 11:08:48 +0000 Subject: [PATCH] ruff 0.9.0 format --- .github/container/nsys_jax/nsys_jax/analyses/Analysis.ipynb | 2 +- .github/container/nsys_jax/nsys_jax/scripts/nsys_jax.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/container/nsys_jax/nsys_jax/analyses/Analysis.ipynb b/.github/container/nsys_jax/nsys_jax/analyses/Analysis.ipynb index 7f0d0375f..14339d2d6 100644 --- a/.github/container/nsys_jax/nsys_jax/analyses/Analysis.ipynb +++ b/.github/container/nsys_jax/nsys_jax/analyses/Analysis.ipynb @@ -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", diff --git a/.github/container/nsys_jax/nsys_jax/scripts/nsys_jax.py b/.github/container/nsys_jax/nsys_jax/scripts/nsys_jax.py index eef097996..6154d36f8 100644 --- a/.github/container/nsys_jax/nsys_jax/scripts/nsys_jax.py +++ b/.github/container/nsys_jax/nsys_jax/scripts/nsys_jax.py @@ -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): @@ -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):