Skip to content

Commit

Permalink
BUG: Remove spare f in an f-string
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jennydaman authored and jhlegarreta committed Jan 4, 2024
1 parent 62c7673 commit bcf6ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/wm_harden_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit bcf6ba9

Please sign in to comment.