Skip to content

Commit 16650a1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 55b14e2 commit 16650a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CPAC/anat_preproc/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ def mri_convert(in_file, reslice_like=None, out_file=None, args=None):
487487
import os
488488

489489
if out_file is None:
490-
out_file = os.path.join(os.getcwd(), os.path.basename(in_file).replace(".mgz", ".nii.gz"))
490+
out_file = os.path.join(
491+
os.getcwd(), os.path.basename(in_file).replace(".mgz", ".nii.gz")
492+
)
491493

492494
cmd = "mri_convert %s %s" % (in_file, out_file)
493495

@@ -525,7 +527,9 @@ def mri_convert_reorient(in_file, orientation, out_file=None):
525527
import os
526528

527529
if out_file is None:
528-
out_file = os.path.join(os.getcwd(), os.path.basename(in_file).split(".")[0] + "_reoriented.mgz")
530+
out_file = os.path.join(
531+
os.getcwd(), os.path.basename(in_file).split(".")[0] + "_reoriented.mgz"
532+
)
529533

530534
cmd = "mri_convert %s %s --out_orientation %s" % (in_file, out_file, orientation)
531535

0 commit comments

Comments
 (0)