Skip to content

Commit

Permalink
Merge pull request #47 from Ian-Goodall-Halliwell/main
Browse files Browse the repository at this point in the history
Update zbrains.py
  • Loading branch information
Ian-Goodall-Halliwell authored Dec 4, 2024
2 parents 71db4d0 + baee84d commit fdfac4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/zbrains.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,11 @@ def check_sub(args, sub, ses=None):
if ses is not None:
micapipe_path = os.path.join(micapipe_path, ses)
hippunfold_path = os.path.join(hippunfold_path, ses)
if not os.path.isdir(micapipe_path):
print(f'Non proccessable micapipe output at {micapipe_path} for {sub}{f"-{ses}" if ses else ""}, skipping')
return False
if "proc" in args.run:

if "cortex" in args.struct or "subcortex" in args.struct:
if not os.path.exists(micapipe_path) or not os.path.isdir(micapipe_path):
print(
Expand All @@ -534,6 +538,7 @@ def check_sub(args, sub, ses=None):
f'No hippunfold at {hippunfold_path} for {sub}{f"-{ses}" if ses else ""}, skipping'
)
return False


return True

Expand Down

0 comments on commit fdfac4c

Please sign in to comment.