From bcf6ba956f49f430efc2e91cb4f15bc97b998ce0 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Tue, 26 Dec 2023 16:39:09 -0500 Subject: [PATCH] BUG: Remove spare `f` in an f-string Remove a spare `f` when redirecting the output of a 3D Slicer command call using an f-string in the transform hardening script. Inadvertently introduced in commit ac6040f. --- bin/wm_harden_transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wm_harden_transform.py b/bin/wm_harden_transform.py index 9baafed3..905bc1fa 100755 --- a/bin/wm_harden_transform.py +++ b/bin/wm_harden_transform.py @@ -115,7 +115,7 @@ def command_harden_transform(polydata, transform, inverse, slicer_path, outdir): str_inverse = 0 print(f"<{os.path.basename(__file__)}> Transforming: {polydata}") - cmd = f"{slicer_path} --no-main-window --python-script $(which harden_transform_with_slicer.py) {polydata} {transform} {str(str_inverse)} {outdir} --python-code 'slicer.app.quit()' >> f{os.path.join(outdir, 'log.txt 2>&1')}" + cmd = f"{slicer_path} --no-main-window --python-script $(which harden_transform_with_slicer.py) {polydata} {transform} {str(str_inverse)} {outdir} --python-code 'slicer.app.quit()' >> {os.path.join(outdir, 'log.txt 2>&1')}" os.system(cmd)