Skip to content

Commit

Permalink
reformat file
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Jul 26, 2024
1 parent f1bb583 commit 8ed7044
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions petdeface/petdeface.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def deface(args: Union[dict, argparse.Namespace]) -> None:
args = argparse.Namespace(**args)
else:
args = args

if not check_valid_fs_license():
raise Exception("You need a valid FreeSurfer license to proceed!")

Expand All @@ -218,7 +218,9 @@ def deface(args: Union[dict, argparse.Namespace]) -> None:

for subject_id in participants:
try:
single_subject_wf = init_single_subject_wf(subject_id, args.bids_dir, preview_pics=args.preview_pics)
single_subject_wf = init_single_subject_wf(
subject_id, args.bids_dir, preview_pics=args.preview_pics
)
except FileNotFoundError:
single_subject_wf = None

Expand All @@ -242,7 +244,7 @@ def init_single_subject_wf(
subject_id: str,
bids_data: [pathlib.Path, BIDSLayout],
output_dir: pathlib.Path = None,
preview_pics=False
preview_pics=False,
) -> Workflow:
"""
Organize the preprocessing pipeline for a single subject.
Expand Down Expand Up @@ -926,7 +928,7 @@ def main(): # noqa: max-complexity: 12
skip_bids_validator=args.skip_bids_validator,
remove_existing=args.remove_existing,
placement=args.placement,
preview_pics=args.preview_pics
preview_pics=args.preview_pics,
)
petdeface.run()

Expand Down

0 comments on commit 8ed7044

Please sign in to comment.